-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* except other errors for getting ecephys paths * fix logic for overwriting opto table, remove npc_sessions dependency * working on simplifying * get mtrain without np_session * factor out np_session * linting fixes * sort imports * remove deps from toml * refactor json_settings into job_settings and inherit from genericetl * have camstimephys inherit from genericetl * add model for camstimephys job settings * lint * get job_settings models to work in camstimephys class when passed as a dict * linting and cleanup * use genericetl.load in run_job * fix mekhlas reviews #174 * lint * finish mekhla feedback * fixes npc_mvr pin * removes hardcoded path --------- Co-authored-by: Mekhla Kapoor <[email protected]>
- Loading branch information
1 parent
aa8af6c
commit 3503ebd
Showing
6 changed files
with
209 additions
and
168 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
"""Module defining JobSettings for Mesoscope ETL""" | ||
|
||
from typing import Literal, Union | ||
from pathlib import Path | ||
from aind_metadata_mapper.core_models import BaseJobSettings | ||
|
||
DEFAULT_OPTO_CONDITIONS = { | ||
"0": { | ||
"duration": 0.01, | ||
"name": "1Hz_10ms", | ||
"condition": "10 ms pulse at 1 Hz", | ||
}, | ||
"1": { | ||
"duration": 0.002, | ||
"name": "1Hz_2ms", | ||
"condition": "2 ms pulse at 1 Hz", | ||
}, | ||
"2": { | ||
"duration": 1.0, | ||
"name": "5Hz_2ms", | ||
"condition": "2 ms pulses at 5 Hz", | ||
}, | ||
"3": { | ||
"duration": 1.0, | ||
"name": "10Hz_2ms", | ||
"condition": "2 ms pulses at 10 Hz", | ||
}, | ||
"4": { | ||
"duration": 1.0, | ||
"name": "20Hz_2ms", | ||
"condition": "2 ms pulses at 20 Hz", | ||
}, | ||
"5": { | ||
"duration": 1.0, | ||
"name": "30Hz_2ms", | ||
"condition": "2 ms pulses at 30 Hz", | ||
}, | ||
"6": { | ||
"duration": 1.0, | ||
"name": "40Hz_2ms", | ||
"condition": "2 ms pulses at 40 Hz", | ||
}, | ||
"7": { | ||
"duration": 1.0, | ||
"name": "50Hz_2ms", | ||
"condition": "2 ms pulses at 50 Hz", | ||
}, | ||
"8": { | ||
"duration": 1.0, | ||
"name": "60Hz_2ms", | ||
"condition": "2 ms pulses at 60 Hz", | ||
}, | ||
"9": { | ||
"duration": 1.0, | ||
"name": "80Hz_2ms", | ||
"condition": "2 ms pulses at 80 Hz", | ||
}, | ||
"10": { | ||
"duration": 1.0, | ||
"name": "square_1s", | ||
"condition": "1 second square pulse: continuously on for 1s", | ||
}, | ||
"11": {"duration": 1.0, "name": "cosine_1s", "condition": "cosine pulse"}, | ||
} | ||
|
||
|
||
class JobSettings(BaseJobSettings): | ||
"""Data to be entered by the user.""" | ||
|
||
job_settings_name: Literal["OpenEphys"] = "OpenEphys" | ||
session_type: str | ||
project_name: str | ||
iacuc_protocol: str | ||
description: str | ||
sessions_root: Union[Path, str] | ||
opto_conditions_map: dict = DEFAULT_OPTO_CONDITIONS | ||
overwrite_tables: bool = False | ||
mtrain_server: str | ||
# TODO: use input_source and replace sessions_root, camstimephys.getfolder | ||
input_source: str = "blah" | ||
active_mouse_platform: bool = False | ||
mouse_platform_name: str = "Mouse Platform" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.