I met a problem when I am trying the first example in the tutorial (i.e., single-peak extraction). The PDF of Ag can be successfully plotted without extracting peak. However, when I execute
srmise data/Ag_nyquist_qmax30.gr --plot --range 2 3.5 --baseline "Polynomial(degree=1)"
on my PC, following warning appears:
The input PDF appears to be missing information: The sampling interval of the input PDF (0.10471976036) is larger than the Nyquist interval (0.10471975512) defined by qmax=30.0. This information is irretrievable.
Traceback (most recent call last):
File "c:\programdata\anaconda2\lib\runpy.py", line 174, in _run_module_as_main
"main", fname, loader, pkg_name)
File "c:\programdata\anaconda2\lib\runpy.py", line 72, in run_code
exec code in run_globals
File "C:\ProgramData\Anaconda2\Scripts\srmise.exe_main.py", line 9, in
File "c:\programdata\anaconda2\lib\site-packages\diffpy\srmise\applications\extract.py", line 388, in main
cov = ext.extract()
File "c:\programdata\anaconda2\lib\site-packages\diffpy\srmise\pdfpeakextraction.py", line 386, in extract
ext.fit() # Clean up parameters after resampling.
File "c:\programdata\anaconda2\lib\site-packages\diffpy\srmise\modelcluster.py", line 878, in fit
orig_qual = self.quality()
File "c:\programdata\anaconda2\lib\site-packages\diffpy\srmise\modelcluster.py", line 1112, in quality
evaluator_inst.evaluate(self, **kwds)
File "c:\programdata\anaconda2\lib\site-packages\diffpy\srmise\modelevaluators\aic.py", line 71, in evaluate
self.chisq = self.chi_squared(fit.value(), fit.y_cluster, fit.error_cluster)
File "c:\programdata\anaconda2\lib\site-packages\diffpy\srmise\modelcluster.py", line 1067, in value
return self.valuebl(r)+(self.model.value(self.r_data, self.slice)[self.slice])
File "c:\programdata\anaconda2\lib\site-packages\diffpy\srmise\modelparts.py", line 272, in value
total += p.value(r, range)
File "c:\programdata\anaconda2\lib\site-packages\diffpy\srmise\modelparts.py", line 468, in value
return self._owner.value(self, r, range)
File "c:\programdata\anaconda2\lib\site-packages\diffpy\srmise\peaks\terminationripples.py", line 226, in value
output[rng] = value[ext_slice][::segments]
TypeError: slice indices must be integers or None or have an index method
Can anyone help with this problem?
Thanks!
I met a problem when I am trying the first example in the tutorial (i.e., single-peak extraction). The PDF of Ag can be successfully plotted without extracting peak. However, when I execute
srmise data/Ag_nyquist_qmax30.gr --plot --range 2 3.5 --baseline "Polynomial(degree=1)"
on my PC, following warning appears:
The input PDF appears to be missing information: The sampling interval of the input PDF (0.10471976036) is larger than the Nyquist interval (0.10471975512) defined by qmax=30.0. This information is irretrievable.
Traceback (most recent call last):
File "c:\programdata\anaconda2\lib\runpy.py", line 174, in _run_module_as_main
"main", fname, loader, pkg_name)
File "c:\programdata\anaconda2\lib\runpy.py", line 72, in run_code
exec code in run_globals
File "C:\ProgramData\Anaconda2\Scripts\srmise.exe_main.py", line 9, in
File "c:\programdata\anaconda2\lib\site-packages\diffpy\srmise\applications\extract.py", line 388, in main
cov = ext.extract()
File "c:\programdata\anaconda2\lib\site-packages\diffpy\srmise\pdfpeakextraction.py", line 386, in extract
ext.fit() # Clean up parameters after resampling.
File "c:\programdata\anaconda2\lib\site-packages\diffpy\srmise\modelcluster.py", line 878, in fit
orig_qual = self.quality()
File "c:\programdata\anaconda2\lib\site-packages\diffpy\srmise\modelcluster.py", line 1112, in quality
evaluator_inst.evaluate(self, **kwds)
File "c:\programdata\anaconda2\lib\site-packages\diffpy\srmise\modelevaluators\aic.py", line 71, in evaluate
self.chisq = self.chi_squared(fit.value(), fit.y_cluster, fit.error_cluster)
File "c:\programdata\anaconda2\lib\site-packages\diffpy\srmise\modelcluster.py", line 1067, in value
return self.valuebl(r)+(self.model.value(self.r_data, self.slice)[self.slice])
File "c:\programdata\anaconda2\lib\site-packages\diffpy\srmise\modelparts.py", line 272, in value
total += p.value(r, range)
File "c:\programdata\anaconda2\lib\site-packages\diffpy\srmise\modelparts.py", line 468, in value
return self._owner.value(self, r, range)
File "c:\programdata\anaconda2\lib\site-packages\diffpy\srmise\peaks\terminationripples.py", line 226, in value
output[rng] = value[ext_slice][::segments]
TypeError: slice indices must be integers or None or have an index method
Can anyone help with this problem?
Thanks!