Ignore:
Timestamp:
Mar 29, 2012 3:52:03 PM (10 years ago)
Author:
toby
Message:

fix plotting with as-inititalized values (oldxy & Fourier map); fix CIF import; fix command-line load; fix early Destroy in SumDialog?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/G2importphase_CIF.py

    r506 r523  
    122122                    )
    123123                if selblk is None: return False # User pressed cancel
    124             blkmm = str_blklist[selblk]
     124            blknm = str_blklist[selblk]
    125125            blk = cf[str_blklist[selblk]]
    126126            SpGrp = blk.get("_symmetry_space_group_name_H-M")
     
    189189                self.Phase['Atoms'].append(atomlist)
    190190            for lbl in phasenamefields: # get a name for the phase
    191                 name = blk.get(lbl).strip()
    192                 if name is None or name == '?' or name == '.':
     191                name = blk.get(lbl)
     192                if name is None:
     193                    continue
     194                name = name.strip()
     195                if name == '?' or name == '.':
    193196                    continue
    194197                else:
     
    201204            print 'CIF error:',detail # for testing
    202205            print sys.exc_info()[0] # for testing
     206            import traceback
     207            print traceback.format_exc()
    203208            return False
    204209        finally:
Note: See TracChangeset for help on using the changeset viewer.