Skip to content

Commit

Permalink
when the number of expected devices is undefined, do not raise but wa…
Browse files Browse the repository at this point in the history
…rn and exit
  • Loading branch information
oliche committed Sep 15, 2023
1 parent 9a725de commit 2473672
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion iblrig/transfer_experiments.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,9 @@ def finalize_copy(self, number_of_expected_devices=None):
At the end of the copy, check if all the files are there and if so, aggregate the device files
:return:
"""
assert number_of_expected_devices
if number_of_expected_devices is None:
log.warning(f"Number of expected devices is not specified, will not finalize this session {self.session_path}")
return
ready_to_finalize = 0
files_stub = list(self.file_remote_experiment_description.parent.glob('*.yaml'))
for file_stub in files_stub:
Expand Down

0 comments on commit 2473672

Please sign in to comment.