Skip to content

Commit 2e1853a

Browse files
edit docstring
1 parent 57465e2 commit 2e1853a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/diffpy/utils/diffraction_objects.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ def scale_to(self, target_diff_object, xtype=None, xvalue=None):
377377

378378
def on_xtype(self, xtype):
379379
f"""
380-
return a 2D np array with x in the first column and y in the second for x of type type
380+
return a list of two 1D np array with x and y data, raise an error if the specified xtype is invalid
381381
382382
Parameters
383383
----------
@@ -386,7 +386,7 @@ def on_xtype(self, xtype):
386386
387387
Returns
388388
-------
389-
a 2D np array with x and y data
389+
a list of two 1D np array with x and y data
390390
"""
391391
if xtype.lower() in ANGLEQUANTITIES:
392392
return self.on_tth()

0 commit comments

Comments
 (0)