@@ -211,8 +211,8 @@ def __eq__(self, other):
211211 return True
212212
213213 def __add__ (self , other ):
214- """Add a scalar value or another DiffractionObject to the yarray of the
215- DiffractionObject.
214+ """Add a scalar value or another DiffractionObject to the yarray
215+ of the DiffractionObject.
216216
217217 Parameters
218218 ----------
@@ -262,8 +262,8 @@ def __add__(self, other):
262262 __radd__ = __add__
263263
264264 def __sub__ (self , other ):
265- """Subtract scalar value or another DiffractionObject to the yarray of
266- the DiffractionObject.
265+ """Subtract scalar value or another DiffractionObject to the
266+ yarray of the DiffractionObject.
267267
268268 This method behaves similarly to the `__add__` method, but performs
269269 subtraction instead of addition. For details on parameters, returns
@@ -290,8 +290,8 @@ def __sub__(self, other):
290290 __rsub__ = __sub__
291291
292292 def __mul__ (self , other ):
293- """Multiply a scalar value or another DiffractionObject with the yarray
294- of this DiffractionObject.
293+ """Multiply a scalar value or another DiffractionObject with the
294+ yarray of this DiffractionObject.
295295
296296 This method behaves similarly to the `__add__` method, but performs
297297 multiplication instead of addition. For details on parameters,
@@ -318,8 +318,8 @@ def __mul__(self, other):
318318 __rmul__ = __mul__
319319
320320 def __truediv__ (self , other ):
321- """Divide the yarray of this DiffractionObject by a scalar value or
322- another DiffractionObject.
321+ """Divide the yarray of this DiffractionObject by a scalar value
322+ or another DiffractionObject.
323323
324324 This method behaves similarly to the `__add__` method, but performs
325325 division instead of addition. For details on parameters, returns,
@@ -474,7 +474,8 @@ def _get_original_array(self):
474474 return self .on_d (), "d"
475475
476476 def on_q (self ):
477- """Return the tuple of two 1D numpy arrays containing q and y data.
477+ """Return the tuple of two 1D numpy arrays containing q and y
478+ data.
478479
479480 Returns
480481 -------
@@ -484,7 +485,8 @@ def on_q(self):
484485 return [self .all_arrays [:, 1 ], self .all_arrays [:, 0 ]]
485486
486487 def on_tth (self ):
487- """Return the tuple of two 1D numpy arrays containing tth and y data.
488+ """Return the tuple of two 1D numpy arrays containing tth and y
489+ data.
488490
489491 Returns
490492 -------
@@ -494,7 +496,8 @@ def on_tth(self):
494496 return [self .all_arrays [:, 2 ], self .all_arrays [:, 0 ]]
495497
496498 def on_d (self ):
497- """Return the tuple of two 1D numpy arrays containing d and y data.
499+ """Return the tuple of two 1D numpy arrays containing d and y
500+ data.
498501
499502 Returns
500503 -------
@@ -506,8 +509,8 @@ def on_d(self):
506509 def scale_to (
507510 self , target_diff_object , q = None , tth = None , d = None , offset = None
508511 ):
509- """Return a new diffraction object which is the current object but
510- rescaled in y to the target.
512+ """Return a new diffraction object which is the current object
513+ but rescaled in y to the target.
511514
512515 By default, if `q`, `tth`, or `d` are not provided, scaling is
513516 based on the max intensity from each object. Otherwise, y-value in
@@ -568,7 +571,8 @@ def scale_to(
568571 return scaled_do
569572
570573 def on_xtype (self , xtype ):
571- """Return a tuple of two 1D numpy arrays containing x and y data.
574+ """Return a tuple of two 1D numpy arrays containing x and y
575+ data.
572576
573577 Parameters
574578 ----------
@@ -597,8 +601,9 @@ def on_xtype(self, xtype):
597601 raise ValueError (_xtype_wmsg (xtype ))
598602
599603 def dump (self , filepath , xtype = None ):
600- """Dump the xarray and yarray of the diffraction object to a two-column
601- file, with the associated information included in the header.
604+ """Dump the xarray and yarray of the diffraction object to a
605+ two-column file, with the associated information included in the
606+ header.
602607
603608 Parameters
604609 ----------
0 commit comments