Changeset 2817 for trunk/GSASII.py
- Timestamp:
- May 2, 2017 10:03:41 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASII.py
r2800 r2817 380 380 :meth:`GSASII.OnImportSmallAngle` and :meth:'GSASII.OnImportReflectometry` 381 381 382 Uses reader_objects subclassed from :class:`GSASII IO.ImportPhase`,383 :class:`GSASII IO.ImportStructFactor`,384 :class:`GSASII IO.ImportPowderData`,385 :class:`GSASII IO.ImportSmallAngleData`386 :class:`GSASII IO.ImportReflectometryData` or387 :class:`GSASII IO.ImportImage`.382 Uses reader_objects subclassed from :class:`GSASIIobj.ImportPhase`, 383 :class:`GSASIIobj.ImportStructFactor`, 384 :class:`GSASIIobj.ImportPowderData`, 385 :class:`GSASIIobj.ImportSmallAngleData` 386 :class:`GSASIIobj.ImportReflectometryData` or 387 :class:`GSASIIobj.ImportImage`. 388 388 If a specific reader is specified, only that method will be called, 389 389 but if no reader is specified, every one that is potentially … … 552 552 rd.errors += "\n Traceback info:\n"+str(traceback.format_exc()) 553 553 if flag: # this read succeeded 554 if rd.SciPy: #was default read by scipy; needs 1 time fixes 555 G2IO.EditImageParms(self,rd.Data,rd.Comments,rd.Image,filename) 556 rd.SciPy = False 554 557 rd.readfilename = filename 555 558 if load2Tree: #images only … … 1122 1125 for i in range(1,1+ibanks): 1123 1126 choices.append('Bank '+str(i)) 1124 bank = 1 + rd.BlockSelector(1127 bank = 1 + G2IO.BlockSelector( 1125 1128 choices, self, 1126 1129 title='Select an instrument parameter bank for '+ … … 1329 1332 for l in dI.defaultIparm_lbl: 1330 1333 choices.append('Defaults for '+l) 1331 res = rd.BlockSelector(choices,ParentFrame=self,title=head,1334 res = G2IO.BlockSelector(choices,ParentFrame=self,title=head, 1332 1335 header='Select default inst parms',useCancel=True) 1333 1336 if res is None: return None … … 1709 1712 item, cookie = self.PatternTree.GetNextChild(self.root, cookie) 1710 1713 # Initialize a base class reader 1711 rd = G2 IO.ImportPowderData(1714 rd = G2obj.ImportPowderData( 1712 1715 extensionlist=tuple(), 1713 1716 strictExtension=False, … … 3101 3104 Id = self.PatternTree.AppendItem(parent=self.root,text=outname) 3102 3105 if Id: 3103 Sample = G2 pdG.SetDefaultSample()3106 Sample = G2obj.SetDefaultSample() 3104 3107 Ymin = np.min(Ysum) 3105 3108 Ymax = np.max(Ysum)
Note: See TracChangeset
for help on using the changeset viewer.