Changeset 5418
- Timestamp:
- Dec 1, 2022 10:08:10 PM (12 months ago)
- Files:
-
- 2 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
install/g2complete/meta.yaml.template
r5412 r5418 15 15 - matplotlib=**mplversion** 16 16 - wxpython=**wxversion** 17 - pillow 18 - pyopengl 19 - scipy 17 20 - conda 18 - scipy19 - pillow20 21 - requests 21 - pyopengl 22 - svn [not win] 22 - subversion [not win] 23 23 - hdf5 24 24 - h5py -
install/g2full/construct.yaml.template
r5416 r5418 5 5 channels: 6 6 - https://conda.anaconda.org/conda-forge 7 7 8 conda_default_channels: 9 - https://conda.anaconda.org/conda-forge 10 8 11 specs: 9 12 - python=**pyversion** … … 15 18 - scipy 16 19 - conda 17 - svn [not win] 20 - requests 21 - subversion [not win] 18 22 - hdf5 19 23 - h5py … … 46 50 #initialize_conda: False # will be added in future version 47 51 initialize_by_default: False 52 company: Argonne National Laboratory -
trunk/exports/G2export_CIF.py
r5404 r5418 399 399 return tblLabels,tblValues,tblSigs,tblTypes 400 400 401 402 # Refactored over here to allow access by GSASIIscriptable.py403 401 def WriteCIFitem(fp, name, value=''): 404 '''Helper function for writing CIF output.''' 402 '''Helper function for writing CIF output. 403 This gets used in different ways. The simplest use will be: 404 405 >>> WriteCIFitem(fp, '_some_cif_name', valstr) 406 407 For loops it will be used like this: 408 409 >>> WriteCIFitem(fp, 'loop_ _cif_name1 _cif_name2') 410 >>> for v1,v2 in values: 411 >>> WriteCIFitem(fp, value=v1) 412 >>> WriteCIFitem(fp, value=v2) 413 414 or if items will be aligned in a table (no spaces or new 415 lines in the items) 416 417 >>> WriteCIFitem(fp, 'loop_ _cif_name1 _cif_name2') 418 >>> for v1,v2 in values: 419 >>> s = PutInCol("{:.4f}".format(v1),10) 420 >>> s += PutInCol(str(v2),8) 421 >>> WriteCIFitem(fp, value=s) 422 423 It is occasionally used where a CIF value is passed as the name 424 parameter. This works if no quoting is needed, but is not a good 425 practice. 426 427 :param fp: file access object 428 :param str name: a CIF data name 429 :param str value: the value associated with the CIF data name. 430 Written in different ways depending on what the contents contain, 431 with respect to quoting. 432 ''' 405 433 # Ignores unicode issues 406 434 if value:
Note: See TracChangeset
for help on using the changeset viewer.