Changeset 5418


Ignore:
Timestamp:
Dec 1, 2022 10:08:10 PM (12 months ago)
Author:
toby
Message:

more install changes

Files:
2 added
5 edited

Legend:

Unmodified
Added
Removed
  • install/g2complete/meta.yaml.template

    r5412 r5418  
    1515    - matplotlib=**mplversion**
    1616    - wxpython=**wxversion**
     17    - pillow
     18    - pyopengl
     19    - scipy
    1720    - conda
    18     - scipy
    19     - pillow
    2021    - requests
    21     - pyopengl
    22     - svn                                  [not win]
     22    - subversion                           [not win]
    2323    - hdf5
    2424    - h5py
  • install/g2full/construct.yaml.template

    r5416 r5418  
    55channels:
    66  - https://conda.anaconda.org/conda-forge
    7  
     7
     8conda_default_channels:
     9  - https://conda.anaconda.org/conda-forge
     10
    811specs:
    912    - python=**pyversion**
     
    1518    - scipy
    1619    - conda
    17     - svn                              [not win]
     20    - requests
     21    - subversion                        [not win]
    1822    - hdf5
    1923    - h5py
     
    4650#initialize_conda: False  # will be added in future version
    4751initialize_by_default: False
     52company: Argonne National Laboratory
  • trunk/exports/G2export_CIF.py

    r5404 r5418  
    399399    return tblLabels,tblValues,tblSigs,tblTypes
    400400
    401 
    402 # Refactored over here to allow access by GSASIIscriptable.py
    403401def 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    '''
    405433    # Ignores unicode issues
    406434    if value:
Note: See TracChangeset for help on using the changeset viewer.