Skip to content

Commit

Permalink
fix order of multi save / loading
Browse files Browse the repository at this point in the history
  • Loading branch information
TomDonoghue committed Sep 8, 2024
1 parent a9a393a commit 4d1ae95
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion neurodsp/sim/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ def load_sims(load_name, file_path=None):
component = '_'.join(splits) if splits else None

load_folder = fpath(file_path, load_name)
load_files = [file for file in os.listdir(load_folder) if file[0] != '.']
load_files = sorted([file for file in os.listdir(load_folder) if file[0] != '.'])

if 'signals.npy' not in load_files:

Expand Down
2 changes: 1 addition & 1 deletion neurodsp/tests/sim/test_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def test_load_sims_msim(tmsims):
label = 'tmsims'
loaded_sims = load_sims(label, TEST_FILES_PATH)
assert loaded_sims.function == tmsims.function
#assert loaded_sims.params == tmsims.params
assert loaded_sims.params == tmsims.params
assert loaded_sims.update == tmsims.update
assert loaded_sims.component == tmsims.component
for lsig, csig in zip(loaded_sims.signals, tmsims.signals):
Expand Down

0 comments on commit 4d1ae95

Please sign in to comment.