@@ -290,27 +290,24 @@ def test_scale_to(inputs, expected):
290290
291291params_scale_to_bad = [
292292 (
293- [
294- np .array ([10 , 25 , 30.1 , 40.2 , 61 , 120 , 140 ]),
295- np .array ([10 , 20 , 30 , 40 , 50 , 60 , 100 ]),
296- "tth" ,
297- 2 * np .pi ,
298- np .array ([20 , 25.5 , 32 , 45 , 50 , 62 , 100 , 125 , 140 ]),
299- np .array ([1.1 , 2 , 3 , 3.5 , 4 , 5 , 10 , 12 , 13 ]),
300- "tth" ,
301- 2 * np .pi ,
302- None ,
303- 60 ,
304- 10 ,
305- 0 ,
306- ],
307- ["tth" , np .array ([1 , 2 , 3 , 4 , 5 , 6 , 10 ])],
293+ np .array ([10 , 25 , 30.1 , 40.2 , 61 , 120 , 140 ]),
294+ np .array ([10 , 20 , 30 , 40 , 50 , 60 , 100 ]),
295+ "tth" ,
296+ 2 * np .pi ,
297+ np .array ([20 , 25.5 , 32 , 45 , 50 , 62 , 100 , 125 , 140 ]),
298+ np .array ([1.1 , 2 , 3 , 3.5 , 4 , 5 , 10 , 12 , 13 ]),
299+ "tth" ,
300+ 2 * np .pi ,
301+ None ,
302+ 60 ,
303+ 10 ,
304+ 0 ,
308305 ),
309306]
310307
311308
312- @pytest .mark .parametrize ("inputs, expected " , params_scale_to_bad )
313- def test_scale_to_bad (inputs , expected ):
309+ @pytest .mark .parametrize ("inputs" , params_scale_to_bad )
310+ def test_scale_to_bad (inputs ):
314311 orig_diff_object = DiffractionObject (xarray = inputs [0 ], yarray = inputs [1 ], xtype = inputs [2 ], wavelength = inputs [3 ])
315312 target_diff_object = DiffractionObject (
316313 xarray = inputs [4 ], yarray = inputs [5 ], xtype = inputs [6 ], wavelength = inputs [7 ]
0 commit comments