Skip to content

Commit

Permalink
small fix to periodic tests
Browse files Browse the repository at this point in the history
  • Loading branch information
TomDonoghue committed Mar 26, 2024
1 parent 4f53829 commit 3c049ff
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion specparam/objs/event.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,8 +325,9 @@ def get_group(self, event_inds, window_inds, output_type='event'):
Parameters
----------
event_inds, window_inds : array_like of int or array_like of bool
event_inds, window_inds : array_like of int or array_like of bool or None
Indices to extract from the object, for event and time windows.
If None, selects all available indices.
output_type : {'time', 'group'}, optional
Type of model object to extract:
'event' : SpectralTimeEventObject
Expand Down Expand Up @@ -384,6 +385,7 @@ def get_group(self, event_inds, window_inds, output_type='event'):

return output


def print_results(self, concise=False):
"""Print out SpectralTimeEventModel results.
Expand Down
4 changes: 2 additions & 2 deletions specparam/tests/analysis/test_periodic.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def test_get_band_peak_group(tfg):

assert np.all(get_band_peak_group(tfg, (8, 12)))

def test_get_band_peak_group():
def test_get_band_peak_group_arr():

data = np.array([[10, 1, 1.8, 0], [13, 1, 2, 2], [14, 2, 4, 2]])

Expand All @@ -27,7 +27,7 @@ def test_get_band_peak_group():
assert out2.shape == (3, 3)
assert np.array_equal(out2[2, :], [14, 2, 4])

def test_get_band_peak():
def test_get_band_peak_arr():

data = np.array([[10, 1, 1.8], [14, 2, 4]])

Expand Down

0 comments on commit 3c049ff

Please sign in to comment.