@@ -29,7 +29,7 @@ def _xtype_wmsg(xtype):
2929def _setter_wmsg (attribute ):
3030 return (
3131 f"Direct modification of attribute '{ attribute } ' is not allowed. "
32- f"Please use 'insert_scattering_quantity ' to modify '{ attribute } '." ,
32+ f"Please use 'input_data ' to modify '{ attribute } '." ,
3333 )
3434
3535
@@ -53,7 +53,7 @@ def __init__(
5353 if yarray is None :
5454 yarray = np .empty (0 )
5555
56- self .insert_scattering_quantity (xarray , yarray , xtype )
56+ self .input_data (xarray , yarray , xtype )
5757
5858 def __eq__ (self , other ):
5959 if not isinstance (other , DiffractionObject ):
@@ -317,7 +317,7 @@ def _set_xarrays(self, xarray, xtype):
317317 self .dmin = np .nanmin (self ._all_arrays [:, 3 ], initial = np .inf )
318318 self .dmax = np .nanmax (self ._all_arrays [:, 3 ], initial = 0.0 )
319319
320- def insert_scattering_quantity (
320+ def input_data (
321321 self ,
322322 xarray ,
323323 yarray ,
@@ -351,7 +351,7 @@ def insert_scattering_quantity(
351351 if len (xarray ) != len (yarray ):
352352 raise ValueError (
353353 "'xarray' and 'yarray' must have the same length. "
354- "Please re-initialize 'DiffractionObject' or re-run the method 'insert_scattering_quantity ' "
354+ "Please re-initialize 'DiffractionObject' or re-run the method 'input_data ' "
355355 "with 'xarray' and 'yarray' of identical length."
356356 )
357357
0 commit comments