@@ -994,7 +994,11 @@ def PreviewFile(self,filename):
994994
995995 def OnImportGeneric (self ,reader ,readerlist ,label ,multiple = False ,
996996 usedRanIdList = [],Preview = True ,load2Tree = False ,filename = None ):
997- '''Used for all imports, including Phases, datasets, images...
997+ '''Used for all imports from GUI, including Phases, datasets, images...
998+
999+ N.B. The code here is largely duplicated in
1000+ :func:`GSASIIscriptable:import_generic` so any changes made here
1001+ need to be duplicated there, too.
9981002
9991003 Called from :meth:`GSASII.OnImportPhase`, :meth:`GSASII.OnImportImage`,
10001004 :meth:`GSASII.OnImportSfact`, :meth:`GSASII.OnImportPowder`,
@@ -1273,6 +1277,10 @@ def OnImportPhase(self,event):
12731277 reader item associated with the menu item, which will be
12741278 None for the last menu item, which is the "guess" option
12751279 where all appropriate formats will be tried.
1280+
1281+ N.B. The code here is largely duplicated in
1282+ :mod:`GSASIIscriptable` so any changes made here
1283+ need to be duplicated there, too.
12761284 '''
12771285 # look up which format was requested
12781286 reqrdr = self .ImportMenuId .get (event .GetId ())
@@ -1513,6 +1521,10 @@ def OnImportImage(self,event):
15131521 where all appropriate formats will be tried.
15141522
15151523 A reader object is filled each time an image is read.
1524+
1525+ N.B. The code here is largely duplicated in
1526+ :mod:`GSASIIscriptable` so any changes made here
1527+ need to be duplicated there, too.
15161528 '''
15171529 self .CheckNotebook ()
15181530 # look up which format was requested
@@ -1541,6 +1553,10 @@ def OnImportSfact(self,event):
15411553 reader item associated with the menu item, which will be
15421554 None for the last menu item, which is the "guess" option
15431555 where all appropriate formats will be tried.
1556+
1557+ N.B. The code here is largely duplicated in
1558+ :mod:`GSASIIscriptable` so any changes made here
1559+ need to be duplicated there, too.
15441560 '''
15451561 # get a list of existing histograms
15461562 HKLFlist = []
@@ -1991,6 +2007,10 @@ def OnImportPowder(self,event):
19912007 where all appropriate formats will be tried.
19922008
19932009 Also reads an instrument parameter file for each dataset.
2010+
2011+ N.B. The code here is largely duplicated in
2012+ :mod:`GSASIIscriptable` so any changes made here
2013+ need to be duplicated there, too.
19942014 '''
19952015 FP ,tth = 25.0 ,150.
19962016 # get a list of existing histograms
@@ -2625,6 +2645,8 @@ def OnImportSmallAngle(self,event):
26252645 None for the last menu item, which is the "guess" option
26262646 where all appropriate formats will be tried.
26272647 Small angle data is presumed to be as QIE form for either x-rays or neutrons
2648+
2649+ N.B. This code is not yet duplicated in :mod:`GSASIIscriptable`.
26282650 '''
26292651
26302652 def GetSASDIparm (reader ):
@@ -2718,6 +2740,8 @@ def OnImportReflectometry(self,event):
27182740 None for the last menu item, which is the "guess" option
27192741 where all appropriate formats will be tried.
27202742 Reflectometry data is presumed to be in QIE form for x-rays of neutrons
2743+
2744+ N.B. This code is not yet duplicated in :mod:`GSASIIscriptable`.
27212745 '''
27222746
27232747 def GetREFDIparm (reader ):
@@ -2817,6 +2841,10 @@ def OnImportPDF(self,event):
28172841 reader item associated with the menu item, which will be
28182842 None for the last menu item, which is the "guess" option
28192843 where all appropriate formats will be tried.
2844+
2845+ N.B. The code here is largely duplicated in
2846+ :mod:`GSASIIscriptable` so any changes made here
2847+ need to be duplicated there, too.
28202848 '''
28212849 # get a list of existing histograms
28222850 PDFlist = []
0 commit comments