Changeset 4534 for trunk/GSASIIobj.py


Ignore:
Timestamp:
Jul 27, 2020 10:42:49 PM (3 years ago)
Author:
toby
Message:

implement variable limits; show cell under Dij vals

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIobj.py

    r4521 r4534  
    19281928    return sorted([var for var in varlist if rexp.match(var)])
    19291929
     1930def prmLookup(name,prmDict):
     1931    '''looks for a parameter in a min/max dictionary, optionally
     1932    considering a wild card for histogram & atom number
     1933    '''
     1934    sn = name.split(':')
     1935    if sn[1] != '': sn[1] = '*'
     1936    if len(sn) >= 4 and sn[3] != '': sn[3] = '*'
     1937    wname = ':'.join(sn)
     1938    if wname in prmDict:
     1939        return wname,prmDict[wname]
     1940    elif name in prmDict:
     1941        return name,prmDict[name]
     1942    else:
     1943        return None,None
     1944       
    19301945
    19311946def _lookup(dic,key):
Note: See TracChangeset for help on using the changeset viewer.