@testing.requires_testing_data
def test_raw_copy():
 raw = read_raw_fif(fif_fname, preload=True)
 (data, _) = raw[:, :]
 copied = raw.copy()
 (copied_data, _) = copied[:, :]
 assert_array_equal(data, copied_data)
 assert_equal(sorted(raw.__dict__.keys()), sorted(copied.__dict__.keys()))
 raw = read_raw_fif(fif_fname, preload=False)
 (data, _) = raw[:, :]
 copied = raw.copy()
 (copied_data, _) = copied[:, :]
 assert_array_equal(data, copied_data)
 assert_equal(sorted(raw.__dict__.keys()), sorted(copied.__dict__.keys()))

@ testing . requires_testing_data def test_raw_copy ( ) : raw = read_raw_fif ( fif_fname , preload = True ) ( data , _ ) = raw [ : , : ] copied = raw . copy ( ) ( copied_data , _ ) = copied [ : , : ] assert_array_equal ( data , copied_data ) assert_equal ( sorted ( raw . __dict__ . keys ( ) ) , sorted ( copied . __dict__ . keys ( ) ) ) raw = read_raw_fif ( fif_fname , preload = False ) ( data , _ ) = raw [ : , : ] copied = raw . copy ( ) ( copied_data , _ ) = copied [ : , : ] assert_array_equal ( data , copied_data ) assert_equal ( sorted ( raw . __dict__ . keys ( ) ) , sorted ( copied . __dict__ . keys ( ) ) )
test raw copy .