Skip to content

Commit 8731def

Browse files
committed
Fix bug
1 parent 566bc64 commit 8731def

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

element_array_ephys/ephys_chronic.py

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
from .readers import spikeglx, kilosort, openephys
1414
from . import probe, get_logger, ephys_report
1515

16-
1716
log = get_logger(__name__)
1817

1918
schema = dj.schema()
@@ -49,7 +48,6 @@ def activate(
4948
get_processed_data_dir(): Optional. Returns absolute path for processed data. Defaults to root directory.
5049
"""
5150

52-
5351
if isinstance(linking_module, str):
5452
linking_module = importlib.import_module(linking_module)
5553
assert inspect.ismodule(
@@ -96,8 +94,8 @@ def get_session_directory(session_key: dict) -> str:
9694
"""Retrieve the session directory with Neuropixels for the given session.
9795
9896
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+
10199
Returns:
102100
A string for the path to the session directory.
103101
"""
@@ -861,15 +859,15 @@ class Curation(dj.Manual):
861859
curation_id: int
862860
---
863861
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
865863
quality_control: bool # has this clustering result undergone quality control?
866864
manual_curation: bool # has manual curation been performed on this clustering result?
867865
curation_note='': varchar(2000)
868866
"""
869867

870-
def create1_from_clustering_task(self, key, curation_note str: = ""):
868+
def create1_from_clustering_task(self, key, curation_note: str = ""):
871869
"""
872-
A function to create a new corresponding "Curation" for a particular
870+
A function to create a new corresponding "Curation" for a particular
873871
"ClusteringTask"
874872
"""
875873
if key not in Clustering():
@@ -1367,8 +1365,7 @@ def get_openephys_probe_data(ephys_recording_key: dict) -> list:
13671365
return probe_data
13681366

13691367

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:
13721369
"""Get the channel map for neuropixels probe.
13731370
"""
13741371
if acq_software == "SpikeGLX":
@@ -1461,7 +1458,7 @@ def generate_electrode_config(probe_type: str, electrodes: list) -> dict:
14611458

14621459

14631460
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.
14651462
"""
14661463
channels_details = {}
14671464

0 commit comments

Comments
 (0)