Skip to content

Commit

Permalink
Cosmetic for chunk reduction messages
Browse files Browse the repository at this point in the history
  • Loading branch information
yger committed May 9, 2018
1 parent 03a0d7e commit d309d88
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion circus/scripts/launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,11 +296,15 @@ def main(argv=None):
print_and_log(['Template compression is highly recommended based on parameters'], 'info', logger)

if params.getint('data', 'N_e') > 1000:
changed_size = False
if params.getint('data', 'chunk_size') >= 30:
params.write('data', 'chunk_size', '15')
changed_size = True
if params.getint('whitening', 'chunk_size') >= 30:
params.write('whitening', 'chunk_size', '15')
print_and_log(["Large number of electrodes, reducing chunk sizes to 15s"], 'info', logger)
changed_size = True
if changed_size:
print_and_log(["Large number of electrodes, reducing chunk sizes to 15s"], 'info', logger)

if not result:
for subtask, command in subtasks:
Expand Down

0 comments on commit d309d88

Please sign in to comment.