Skip to content

Commit 863d9b1

Browse files
committed
Remove empty spaces to compare with ephys modules
1 parent 8731def commit 863d9b1

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

element_array_ephys/ephys_acute.py

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,12 @@ def activate(
3636
create_schema (bool): If True, schema will be created in the database.
3737
create_tables (bool): If True, tables related to the schema will be created in the database.
3838
linking_module (str): A string containing the module name or module containing the required dependencies to activate the schema.
39-
39+
4040
Dependencies:
4141
Upstream tables:
4242
Session: A parent table to ProbeInsertion
4343
Probe: A parent table to EphysRecording. Probe information is required before electrophysiology data is imported.
44-
44+
4545
Functions:
4646
get_ephys_root_data_dir(): Returns absolute path for root data director(y/ies) with all electrophysiological recording sessions, as a list of string(s).
4747
get_session_direction(session_key: dict): Returns path to electrophysiology data for the a particular session as a list of strings.
@@ -125,8 +125,8 @@ class AcquisitionSoftware(dj.Lookup):
125125
Attributes:
126126
acq_software ( varchar(24) ): Acquisition software, e.g,. SpikeGLX, OpenEphys
127127
"""
128-
129-
definition = """ # Name of software used for recording of neuropixels probes - SpikeGLX or Open Ephys
128+
129+
definition = """ # Software used for recording of neuropixels probes
130130
acq_software: varchar(24)
131131
"""
132132
contents = zip(["SpikeGLX", "Open Ephys"])
@@ -271,7 +271,7 @@ class EphysRecording(dj.Imported):
271271
---
272272
-> probe.ElectrodeConfig
273273
-> AcquisitionSoftware
274-
sampling_rate: float # (Hz)
274+
sampling_rate: float # (Hz)
275275
recording_datetime: datetime # datetime of the recording from this probe
276276
recording_duration: float # (seconds) duration of the recording from this probe
277277
"""
@@ -296,6 +296,7 @@ def make(self, key):
296296
session_dir = find_full_path(
297297
get_ephys_root_data_dir(), get_session_directory(key)
298298
)
299+
299300
inserted_probe_serial_number = (ProbeInsertion * probe.Probe & key).fetch1(
300301
"probe"
301302
)
@@ -708,7 +709,7 @@ class ClusteringTask(dj.Manual):
708709
EphysRecording (foreign key): EphysRecording primary key.
709710
ClusteringParamSet (foreign key): ClusteringParamSet primary key.
710711
clustering_outdir_dir (varchar (255) ): Relative path to output clustering results.
711-
task_mode (enum): `Trigger` and `load` either computes clustering or imports existing clustering data, respectively.
712+
task_mode (enum): `Trigger` computes clustering or and `load` imports existing data.
712713
"""
713714

714715
definition = """
@@ -732,9 +733,7 @@ def infer_output_dir(cls, key: dict, relative: bool = False, mkdir: bool = False
732733
e.g.: sub4/sess1/probe_2/kilosort2_0
733734
"""
734735
processed_dir = pathlib.Path(get_processed_root_data_dir())
735-
session_dir = find_full_path(
736-
get_ephys_root_data_dir(), get_session_directory(key)
737-
)
736+
session_dir = find_full_path(get_ephys_root_data_dir(), get_session_directory(key))
738737
root_dir = find_root_directory(get_ephys_root_data_dir(), session_dir)
739738

740739
method = (
@@ -798,7 +797,7 @@ class Clustering(dj.Imported):
798797
clustering_time (datetime): Time when clustering results are generated.
799798
package_version (varchar(16) ): Package version used for a clustering analysis.
800799
"""
801-
800+
802801
definition = """
803802
# Clustering Procedure
804803
-> ClusteringTask
@@ -998,7 +997,7 @@ class Unit(dj.Part):
998997
spike_depths (longblob): Array of depths associated with each spike, relative to each spike.
999998
"""
1000999

1001-
definition = """
1000+
definition = """
10021001
# Properties of a given unit from a round of clustering (and curation)
10031002
-> master
10041003
unit: int

0 commit comments

Comments
 (0)