@@ -366,7 +366,7 @@ def test_all_array_setter():
366366 with pytest .raises (
367367 AttributeError ,
368368 match = "Direct modification of attribute 'all_arrays' is not allowed. "
369- "Please use 'input_data ' to modify 'all_arrays'." ,
369+ "Please use 'insert_scattering_quantity ' to modify 'all_arrays'." ,
370370 ):
371371 actual_do .all_arrays = np .empty ((4 , 4 ))
372372
@@ -383,7 +383,7 @@ def test_id_setter():
383383 # Attempt to directly modify the property
384384 with pytest .raises (
385385 AttributeError ,
386- match = "Direct modification of attribute 'id' is not allowed. Please use 'input_data ' to modify 'id'." ,
386+ match = "Direct modification of attribute 'id' is not allowed. Please use 'insert_scattering_quantity ' to modify 'id'." ,
387387 ):
388388 do .id = uuid .uuid4 ()
389389
@@ -392,7 +392,7 @@ def test_xarray_yarray_length_mismatch():
392392 with pytest .raises (
393393 ValueError ,
394394 match = "'xarray' and 'yarray' must have the same length. "
395- "Please re-initialize 'DiffractionObject' or re-run the method 'input_data ' "
395+ "Please re-initialize 'DiffractionObject' or re-run the method 'insert_scattering_quantity ' "
396396 "with 'xarray' and 'yarray' of identical length" ,
397397 ):
398398 DiffractionObject (xarray = np .array ([1.0 , 2.0 ]), yarray = np .array ([0.0 , 0.0 , 0.0 ]))
@@ -410,7 +410,7 @@ def test_input_xtype_setter():
410410 with pytest .raises (
411411 AttributeError ,
412412 match = "Direct modification of attribute 'input_xtype' is not allowed. "
413- "Please use 'input_data ' to modify 'input_xtype'." ,
413+ "Please use 'insert_scattering_quantity ' to modify 'input_xtype'." ,
414414 ):
415415 do .input_xtype = "q"
416416
0 commit comments