Skip to content

Commit 2a7428c

Browse files
committed
Use _input_xtype within method
1 parent b30cc7e commit 2a7428c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/diffpy/utils/diffraction_objects.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -374,11 +374,11 @@ def insert_scattering_quantity(
374374
raise ValueError(_xtype_wmsg(xtype))
375375

376376
def _get_original_array(self):
377-
if self._xtype in QQUANTITIES:
377+
if self._input_xtype in QQUANTITIES:
378378
return self.on_q(), "q"
379-
elif self._xtype in ANGLEQUANTITIES:
379+
elif self._input_xtype in ANGLEQUANTITIES:
380380
return self.on_tth(), "tth"
381-
elif self._xtype in DQUANTITIES:
381+
elif self._input_xtype in DQUANTITIES:
382382
return self.on_d(), "d"
383383

384384
def on_q(self):

0 commit comments

Comments
 (0)