|
13 | 13 | from .readers import spikeglx, kilosort, openephys |
14 | 14 | from . import probe, get_logger, ephys_report |
15 | 15 |
|
16 | | - |
17 | 16 | log = get_logger(__name__) |
18 | 17 |
|
19 | 18 | schema = dj.schema() |
@@ -49,7 +48,6 @@ def activate( |
49 | 48 | get_processed_data_dir(): Optional. Returns absolute path for processed data. Defaults to root directory. |
50 | 49 | """ |
51 | 50 |
|
52 | | - |
53 | 51 | if isinstance(linking_module, str): |
54 | 52 | linking_module = importlib.import_module(linking_module) |
55 | 53 | assert inspect.ismodule( |
@@ -96,8 +94,8 @@ def get_session_directory(session_key: dict) -> str: |
96 | 94 | """Retrieve the session directory with Neuropixels for the given session. |
97 | 95 |
|
98 | 96 | Args: |
99 | | - session_key (dict): A dictionary mapping subject to an entry in the subject table, and session_datetime corresponding to a session in the database. |
100 | | - |
| 97 | + session_key (dict): A dictionary mapping subject to an entry in the subject table, and session_datetime corresponding to a session in the database. |
| 98 | +
|
101 | 99 | Returns: |
102 | 100 | A string for the path to the session directory. |
103 | 101 | """ |
@@ -861,15 +859,15 @@ class Curation(dj.Manual): |
861 | 859 | curation_id: int |
862 | 860 | --- |
863 | 861 | curation_time: datetime # time of generation of this set of curated clustering results |
864 | | - curation_output_dir: varchar(255) # output directory of the curated results, relative to clustering root data directory |
| 862 | + curation_output_dir: varchar(255) # output directory of the curated results, relative to root data directory |
865 | 863 | quality_control: bool # has this clustering result undergone quality control? |
866 | 864 | manual_curation: bool # has manual curation been performed on this clustering result? |
867 | 865 | curation_note='': varchar(2000) |
868 | 866 | """ |
869 | 867 |
|
870 | | - def create1_from_clustering_task(self, key, curation_note str: = ""): |
| 868 | + def create1_from_clustering_task(self, key, curation_note: str = ""): |
871 | 869 | """ |
872 | | - A function to create a new corresponding "Curation" for a particular |
| 870 | + A function to create a new corresponding "Curation" for a particular |
873 | 871 | "ClusteringTask" |
874 | 872 | """ |
875 | 873 | if key not in Clustering(): |
@@ -1367,8 +1365,7 @@ def get_openephys_probe_data(ephys_recording_key: dict) -> list: |
1367 | 1365 | return probe_data |
1368 | 1366 |
|
1369 | 1367 |
|
1370 | | -def get_neuropixels_channel2electrode_map(ephys_recording_key: dict, |
1371 | | -acq_software: str) -> dict: |
| 1368 | +def get_neuropixels_channel2electrode_map(ephys_recording_key: dict, acq_software: str) -> dict: |
1372 | 1369 | """Get the channel map for neuropixels probe. |
1373 | 1370 | """ |
1374 | 1371 | if acq_software == "SpikeGLX": |
@@ -1461,7 +1458,7 @@ def generate_electrode_config(probe_type: str, electrodes: list) -> dict: |
1461 | 1458 |
|
1462 | 1459 |
|
1463 | 1460 | def get_recording_channels_details(ephys_recording_key: dict) -> np.array: |
1464 | | - """Get details of recording channels for a givenn recording. |
| 1461 | + """Get details of recording channels for a given recording. |
1465 | 1462 | """ |
1466 | 1463 | channels_details = {} |
1467 | 1464 |
|
|
0 commit comments