Skip to content

Commit

Permalink
Add ETL depths flag for backup_done filename
Browse files Browse the repository at this point in the history
  • Loading branch information
drinnenb committed Feb 14, 2021
1 parent 6e50840 commit 1eba3f4
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 11 deletions.
16 changes: 8 additions & 8 deletions notebooks/check_artefact_removal.ipynb

Large diffs are not rendered by default.

10 changes: 7 additions & 3 deletions two-photon/process.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
# python Documents\GitHub\two-photon\two-photon\process.py --input_dir E:\AD --output_dir E:\AD\output --recording 20200310M88:regL23-000 --backup_dir=O:\users\drinnenb\Data2p\ --preprocess
# python Documents\GitHub\two-photon\two-photon\process.py --input_dir E:\AD --output_dir E:\AD\output --recording 20200310M88:regL23-000 --backup_dir=O:\users\drinnenb\Data2p\ --run_suite2p
# python Documents\GitHub\two-photon\two-photon\process.py --input_dir E:\AD --output_dir E:\AD\output --recording 20200310M88:regL23-000 --backup_dir=O:\users\drinnenb\Data2p\ --run_suite2p --prev_recording 20200310M88:regL23-000
# python Documents\GitHub\two-photon\two-photon\process.py --input_dir E:\AD --output_dir E:\AD\output --recording 20200310M88:regL23-000 --backup_dir=O:\users\drinnenb\Data2p\ --backup_output
# python Documents\GitHub\two-photon\two-photon\process.py --input_dir E:\AD --output_dir E:\AD\output --recording 20200310M88:regL23-000 --backup_dir=O:\users\drinnenb\Data2p\ --backup_output --ETL_depths=30_0_30
# python Documents\GitHub\two-photon\two-photon\process.py --input_dir E:\AD --output_dir E:\AD\output --recording 20200310M88:regL23-000 --backup_dir=O:\users\drinnenb\Data2p\ --backup_data
# python Documents\GitHub\two-photon\two-photon\process.py --input_dir E:\AD --output_dir E:\AD\output --recording 20200310M88:regL23-000 --backup_dir=O:\users\drinnenb\Data2p\ --backup_hdf5
# python Documents\GitHub\two-photon\two-photon\process.py --input_dir E:\AD --output_dir E:\AD\output --recording 20200325M89:VRmm-000 --backup_dir=O:\users\drinnenb\Data2p\ --preprocess --run_suite2p --backup_output --backup_data --zip_data
# python Documents\GitHub\two-photon\two-photon\process.py --input_dir E:\AD --output_dir E:\AD\output --recording 20200325M89:playback-000 --backup_dir=O:\users\drinnenb\Data2p\ --preprocess --run_suite2p --prev_recording 202003M89:regL23-000
# python Documents\GitHub\two-photon\two-photon\process.py --input_dir E:\AD --output_dir E:\AD\output --recording 20200325M89:playback-000 --backup_dir=O:\users\drinnenb\Data2p\ --rip --preprocess --run_suite2p --prev_recording 20200325M89:VRmm-000 --backup_output --backup_data
# python Documents\GitHub\two-photon\two-photon\process.py --input_dir E:\AD --output_dir E:\AD\output --recording 20200325M89:playback-000 --backup_dir=O:\users\drinnenb\Data2p\ --rip --preprocess --settle_time --backup_output
# python Documents\GitHub\two-photon\two-photon\process.py --input_dir E:\AD --output_dir E:\AD\output --recording 20200325M89:playback-000 --backup_dir=O:\users\drinnenb\Data2p\ --rip --preprocess --settle_time=5 --backup_output

import argparse
from datetime import datetime
Expand Down Expand Up @@ -143,7 +143,7 @@ def get_dirname_hdf5(sess_name, rec_name):
backup(trial_order_path,dirname_backup / 'trial_order')
# backup_pattern(slm_root, slm_trial_order_pattern, dirname_backup / 'trial_order')

backup_done_file = args.backup_dir / 'backup_done' / f'{session_name}_{recording_name}.backup_done'
backup_done_file = args.backup_dir / 'backup_done' / f'{session_name}_{recording_name}_ETL{args.ETL_depths}.backup_done'
backup_done_file.parent.mkdir(parents=True, exist_ok=True)
logger.info('Creating backup_done file: %s', backup_done_file)
backup_done_file.touch()
Expand Down Expand Up @@ -322,6 +322,10 @@ def parse_args():
help='Backup hdf5 formatted data (with and without artefact removal)')
group.add_argument('--backup_output', action='store_true', help='Backup all output processing')
group.add_argument('--backup_dir', type=pathlib.Path, default='', help='Remote dirname to sync results to.')
group.add_argument('--ETL_depths',
type=str,
help=('ETL depth for each plane in um, separated by _, only used for .backup_done file name '
'e.g. -30_0_30'))

# Temporary argument for testing. If it works, leave it on by default and remove flag.
group.add_argument('--zip_data',
Expand Down

0 comments on commit 1eba3f4

Please sign in to comment.