@@ -231,19 +231,19 @@ def test_add_multivariate_process_to_existing_data_object():
231231 orig_data_object .add_process (proc = new_multivariate_proc )
232232 assert "Process must be a 1D numpy array" in str (excinfo .value ), "Expected 1D array error NOT thrown."
233233
234- @pytest .mark .parametrize ("index" ,
235- [[1 ], [1 , 3 ], [1 , 2 , 3 ]])
236- def test_remove_valid_process_from_existing_dataset (index ):
237- """Try to remove valid processes from existing dataset by specifying one or more indices.
238- Check if correct indices are being used."""
239- dataset = np .random .randn (5 , 100 )
240- d = Data (data = dataset , normalise = False )
241- rows_to_remove = index
242- expected_dataset = np .delete (dataset , rows_to_remove , axis = 0 )
243- d .remove_process (index )
244- out = d .to_numpy (squeeze = True )
245- assert out .shape [0 ] == (5 - len (index )), f"Dataset shape after removing { len (index )} proc(s) not equal to { (5 - len (index ))} "
246- assert np .array_equal (expected_dataset , out ), f"Expected dataset after removing proc(s): { index } not equal to dataset returned."
234+ # @pytest.mark.parametrize("index",
235+ # [[1], [1, 3], [1, 2, 3]])
236+ # def test_remove_valid_process_from_existing_dataset(index):
237+ # """Try to remove valid processes from existing dataset by specifying one or more indices.
238+ # Check if correct indices are being used."""
239+ # dataset = np.random.randn(5, 100)
240+ # d = Data(data=dataset, normalise=False)
241+ # rows_to_remove = index
242+ # expected_dataset = np.delete(dataset, rows_to_remove, axis=0)
243+ # d.remove_process(index)
244+ # out = d.to_numpy(squeeze=True)
245+ # assert out.shape[0] == (5 - len(index)), f"Dataset shape after removing {len(index)} proc(s) not equal to {(5 - len(index))}"
246+ # assert np.array_equal(expected_dataset, out), f"Expected dataset after removing proc(s): {index} not equal to dataset returned."
247247
248248@pytest .mark .parametrize ("dataset_name" , ["forex" , "cml" ])
249249def test_load_valid_dataset (dataset_name ):
@@ -301,7 +301,7 @@ def test_normalisation_flag():
301301 """Test whether the normalisation flag when instantiating
302302 the calculator works as expected."""
303303 data = np .random .randn (3 , 100 )
304- calc = Calculator (dataset = data , normalise = False )
304+ calc = Calculator (dataset = data , normalise = False , detrend = False )
305305 calc_loaded_dataset = calc .dataset .to_numpy ().squeeze ()
306306
307307 assert (calc_loaded_dataset == data ).all (), f"Calculator normalise=False not producing the correct output."
0 commit comments