44
55import numpy as np
66
7- from fooof .utils import compare_settings
7+ from fooof .utils import compare_info
88from fooof .group import FOOOFGroup
99from fooof .synth import gen_group_power_spectra
1010
@@ -23,39 +23,39 @@ def test_combine_fooofs(tfm, tfg):
2323 fg1 = combine_fooofs ([tfm , tfm2 ])
2424 assert fg1
2525 assert len (fg1 ) == 2
26- assert compare_settings ([fg1 , tfm ])
26+ assert compare_info ([fg1 , tfm ], 'settings' )
2727 assert fg1 .group_results [0 ] == tfm .get_results ()
2828 assert fg1 .group_results [- 1 ] == tfm2 .get_results ()
2929
3030 # Check combining 3 FOOOFs
3131 fg2 = combine_fooofs ([tfm , tfm2 , tfm3 ])
3232 assert fg2
3333 assert len (fg2 ) == 3
34- assert compare_settings ([fg2 , tfm ])
34+ assert compare_info ([fg2 , tfm ], 'settings' )
3535 assert fg2 .group_results [0 ] == tfm .get_results ()
3636 assert fg2 .group_results [- 1 ] == tfm3 .get_results ()
3737
3838 # Check combining 2 FOOOFGroups
3939 nfg1 = combine_fooofs ([tfg , tfg2 ])
4040 assert nfg1
4141 assert len (nfg1 ) == len (tfg ) + len (tfg2 )
42- assert compare_settings ([nfg1 , tfg , tfg2 ])
42+ assert compare_info ([nfg1 , tfg , tfg2 ], 'settings' )
4343 assert nfg1 .group_results [0 ] == tfg .group_results [0 ]
4444 assert nfg1 .group_results [- 1 ] == tfg2 .group_results [- 1 ]
4545
4646 # Check combining 3 FOOOFGroups
4747 nfg2 = combine_fooofs ([tfg , tfg2 , tfg3 ])
4848 assert nfg2
4949 assert len (nfg2 ) == len (tfg ) + len (tfg2 ) + len (tfg3 )
50- assert compare_settings ([nfg2 , tfg , tfg2 , tfg3 ])
50+ assert compare_info ([nfg2 , tfg , tfg2 , tfg3 ], 'settings' )
5151 assert nfg2 .group_results [0 ] == tfg .group_results [0 ]
5252 assert nfg2 .group_results [- 1 ] == tfg3 .group_results [- 1 ]
5353
5454 # Check combining a mixture of FOOOF & FOOOFGroup
5555 mfg3 = combine_fooofs ([tfg , tfm , tfg2 , tfm2 ])
5656 assert mfg3
5757 assert len (mfg3 ) == len (tfg ) + 1 + len (tfg2 ) + 1
58- assert compare_settings ([tfg , tfm , tfg2 , tfm2 ])
58+ assert compare_info ([tfg , tfm , tfg2 , tfm2 ], 'settings' )
5959 assert mfg3 .group_results [0 ] == tfg .group_results [0 ]
6060 assert mfg3 .group_results [- 1 ] == tfm2 .get_results ()
6161
0 commit comments