We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent df96dc3 commit b0948b6Copy full SHA for b0948b6
hexrd/wppf/amorphous.py
@@ -160,7 +160,10 @@ def tth_list(self):
160
161
@tth_list.setter
162
def tth_list(self, val):
163
- if isinstance(val, np.ndarray):
+ if isinstance(val, np.ma.MaskedArray):
164
+ print('here')
165
+ self._tth_list = val.filled()
166
+ elif isinstance(val, np.ndarray):
167
self._tth_list = val
168
elif isinstance(val, (list, tuple)):
169
self._tth_list = np.array(val)
@@ -313,6 +316,7 @@ def amorphous_lineout(self):
313
316
for key in self.center:
314
317
p = np.hstack((self.center[key],
315
318
self.fwhm[key]))
319
+
320
lo += self.scale[key]*self.peak_model(p, self.tth_list)
321
322
return lo
0 commit comments