Skip to content

Commit

Permalink
Add draft of tests for get_params with failed model fits
Browse files Browse the repository at this point in the history
  • Loading branch information
TomDonoghue committed Jan 8, 2020
1 parent ca05499 commit 3d0c388
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions fooof/tests/test_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,12 @@ def test_fg_fail():
for res in ntfg.get_results():
assert res

# # Test that get_params works with failed model fits
# outs1 = ntfg.get_params('aperiodic_params', 'exponent')
# outs2 = ntfg.get_params('aperiodic_params', 'exponent')
# outs3 = ntfg.get_params('peak_params')
# outs4 = ntfg.get_params('peak_params', 0)

def test_fg_drop(tfg):
"""Test function to drop from FOOOFGroup."""

Expand Down

0 comments on commit 3d0c388

Please sign in to comment.