@@ -422,7 +422,7 @@ def on_q(self):
422
422
423
423
Returns
424
424
-------
425
- (xarray, yarray ) : tuple of ndarray
425
+ (q-array, y-array ) : tuple of ndarray
426
426
The tuple containing two 1D numpy arrays with q and y data
427
427
"""
428
428
return [self .all_arrays [:, 1 ], self .all_arrays [:, 0 ]]
@@ -432,7 +432,7 @@ def on_tth(self):
432
432
433
433
Returns
434
434
-------
435
- (xarray, yarray ) : tuple of ndarray
435
+ (tth-array, y-array ) : tuple of ndarray
436
436
The tuple containing two 1D numpy arrays with tth and y data
437
437
"""
438
438
return [self .all_arrays [:, 2 ], self .all_arrays [:, 0 ]]
@@ -442,7 +442,7 @@ def on_d(self):
442
442
443
443
Returns
444
444
-------
445
- (xarray, yarray ) : tuple of ndarray
445
+ (d-array, y-array ) : tuple of ndarray
446
446
The tuple containing two 1D numpy arrays with d and y data
447
447
"""
448
448
return [self .all_arrays [:, 3 ], self .all_arrays [:, 0 ]]
@@ -537,6 +537,14 @@ def dump(self, filepath, xtype=None):
537
537
The filepath where the diffraction object will be dumped
538
538
xtype : str, optional, default is q
539
539
The type of quantity for the independent variable chosen from {*XQUANTITIES, }
540
+
541
+ Examples
542
+ --------
543
+ To save a diffraction object to a file named "diffraction_data.chi" with
544
+ the independent variable 'q':
545
+
546
+ >>> file = "diffraction_data.chi"
547
+ >>> do.dump(file, xtype="q")
540
548
"""
541
549
if xtype is None :
542
550
xtype = "q"
0 commit comments