@@ -286,7 +286,7 @@ def test_dump(tmp_path, mocker):
286286 {
287287 "_all_arrays" : np .empty (shape = (0 , 4 )), # instantiate empty
288288 "metadata" : {},
289- "_xtype " : "" ,
289+ "_input_xtype " : "" ,
290290 "name" : "" ,
291291 "scat_quantity" : None ,
292292 "qmin" : np .float64 (np .inf ),
@@ -303,7 +303,7 @@ def test_dump(tmp_path, mocker):
303303 {
304304 "_all_arrays" : np .empty (shape = (0 , 4 )),
305305 "metadata" : {"thing" : "1" , "another" : "2" },
306- "_xtype " : "" ,
306+ "_input_xtype " : "" ,
307307 "name" : "test" ,
308308 "scat_quantity" : "x-ray" ,
309309 "qmin" : np .float64 (np .inf ),
@@ -331,7 +331,7 @@ def test_dump(tmp_path, mocker):
331331 ]
332332 ),
333333 "metadata" : {},
334- "_xtype " : "tth" ,
334+ "_input_xtype " : "tth" ,
335335 "name" : "" ,
336336 "scat_quantity" : None ,
337337 "qmin" : np .float64 (0.0 ),
@@ -360,7 +360,7 @@ def test_dump(tmp_path, mocker):
360360 ]
361361 ),
362362 "metadata" : {},
363- "_xtype " : "d" ,
363+ "_input_xtype " : "d" ,
364364 "name" : "" ,
365365 "scat_quantity" : "x-ray" ,
366366 "qmin" : np .float64 (0.0 ),
@@ -411,21 +411,21 @@ def test_all_array_setter():
411411 actual_do .all_arrays = np .empty ((4 , 4 ))
412412
413413
414- def test_xtype_getter ():
414+ def test_input_xtype_getter ():
415415 do = DiffractionObject (xtype = "tth" )
416- assert do .xtype == "tth"
416+ assert do .input_xtype == "tth"
417417
418418
419- def test_xtype_setter ():
419+ def test_input_xtype_setter ():
420420 do = DiffractionObject (xtype = "tth" )
421421
422422 # Attempt to directly modify the property
423423 with pytest .raises (
424424 AttributeError ,
425- match = "Direct modification of attribute 'xtype ' is not allowed."
426- "Please use 'insert_scattering_quantity' to modify 'xtype '." ,
425+ match = "Direct modification of attribute 'input_xtype ' is not allowed."
426+ "Please use 'insert_scattering_quantity' to modify 'input_xtype '." ,
427427 ):
428- do .xtype = "q"
428+ do .input_xtype = "q"
429429
430430
431431def test_copy_object ():
0 commit comments