[GSAS-II] Question about loading multi-histogram data into GSASIIscriptable

Long Yang dragonyang92 at gmail.com
Thu Jan 31 13:13:46 CST 2019


Hi all,

I am new to GSAS-II scriptable. I am trying to load the powder histogram data using `gpx.add_powder_histogram` but failed. The data file contains 6 banks TOF histograms together in one file. If use GSAS-II GUI, it can be loaded perfectly as in GSAS, but not work in GSASIIscriptable. The traceback is shown below.

Anyone knows how to do it? 
Or do I have to cut the file into 6 pieces of individual files that one file is one bank histogram?

Thank you!

Bests,
Long Yang

Traceback (most recent call last):
  File "si.py", line 31, in <module>
    hist = gpx.add_powder_histogram("nomad_si_data.gsa","NOMAD_2018A_shifter_20180606.instprm",fmthint="GSAS powder")
  File "/Users/Dragon/anaconda/envs/gsas2/GSASII/GSASIIscriptable.py", line 1324, in add_powder_histogram
    pwdrreaders = import_generic(datafile, PwdrDataReaders,fmthint=fmthint)
  File "/Users/Dragon/anaconda/envs/gsas2/GSASII/GSASIIscriptable.py", line 991, in import_generic
    raise G2ImportException("Not sure what data to select")
GSASIIscriptable.G2ImportException: Not sure what data to select


More information about the GSAS-II mailing list