Skip to content

Commit d5de596

Browse files
committed
Format with black
1 parent 2557877 commit d5de596

File tree

10 files changed

+6
-17
lines changed

10 files changed

+6
-17
lines changed

element_array_ephys/ephys_acute.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -910,7 +910,7 @@ def make(self, key):
910910
raise ValueError(f"Unknown task mode: {task_mode}")
911911

912912
creation_time, _, _ = kilosort.extract_clustering_info(kilosort_dir)
913-
self.insert1({**key, "clustering_time": creation_time, "package_version":""})
913+
self.insert1({**key, "clustering_time": creation_time, "package_version": ""})
914914

915915

916916
@schema

element_array_ephys/ephys_chronic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -839,7 +839,7 @@ def make(self, key):
839839
raise ValueError(f"Unknown task mode: {task_mode}")
840840

841841
creation_time, _, _ = kilosort.extract_clustering_info(kilosort_dir)
842-
self.insert1({**key, "clustering_time": creation_time, "package_version":""})
842+
self.insert1({**key, "clustering_time": creation_time, "package_version": ""})
843843

844844

845845
@schema

element_array_ephys/ephys_report.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ class ProbeLevelReport(dj.Computed):
5353
"""
5454

5555
def make(self, key):
56-
5756
from .plotting.probe_level import plot_driftmap
5857

5958
save_dir = _make_save_dir()
@@ -63,7 +62,6 @@ def make(self, key):
6362
shanks = set((probe.ProbeType.Electrode & units).fetch("shank"))
6463

6564
for shank_no in shanks:
66-
6765
table = units * ephys.ProbeInsertion * probe.ProbeType.Electrode & {
6866
"shank": shank_no
6967
}
@@ -120,7 +118,6 @@ class UnitLevelReport(dj.Computed):
120118
"""
121119

122120
def make(self, key):
123-
124121
from .plotting.unit_level import (
125122
plot_auto_correlogram,
126123
plot_depth_waveforms,
@@ -168,7 +165,7 @@ class QualityMetricCutoffs(dj.Lookup):
168165
isi_violations_maximum (float): Optional. ISI violation ratio cut-off.
169166
cutoffs_hash (uuid): uuid for the cut-off values.
170167
"""
171-
168+
172169
definition = """
173170
cutoffs_id : smallint
174171
---
@@ -234,7 +231,7 @@ class QualityMetricSet(dj.Manual):
234231
ephys.QualityMetrics (foreign key): ephys.QualityMetrics primary key.
235232
QualityMetricCutoffs (foreign key): QualityMetricCutoffs primary key.
236233
"""
237-
234+
238235
definition = """
239236
-> ephys.QualityMetrics
240237
-> QualityMetricCutoffs
@@ -249,7 +246,7 @@ class QualityMetricReport(dj.Computed):
249246
QualityMetricSet (foreign key): QualityMetricSet primary key.
250247
plot_grid (longblob): Plotly figure object.
251248
"""
252-
249+
253250
definition = """
254251
-> QualityMetricSet
255252
---

element_array_ephys/export/nwb/nwb.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,6 @@ def create_units_table(
219219
(ephys.CuratedClustering.Unit & clustering_query.proj()).fetch(as_dict=True),
220220
desc=f"creating units table for paramset {paramset_record['paramset_idx']}",
221221
):
222-
223222
probe_id, shank_num = (
224223
ephys.ProbeInsertion
225224
* ephys.CuratedClustering.Unit

element_array_ephys/plotting/qc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ class initialization.
198198
return fig.add_trace(
199199
go.Scatter(
200200
x=histogram_bins[:-1],
201-
y=gaussian_filter1d(histogram, 1),
201+
y=gaussian_filter1d(histogram, 1),
202202
mode="lines",
203203
line=dict(color="rgb(0, 160, 223)", width=2 * scale), # DataJoint Blue
204204
hovertemplate="%{x:.2f}<br>%{y:.2f}<extra></extra>",

element_array_ephys/plotting/unit_level.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,6 @@ def plot_depth_waveforms(
183183
# Plot figure
184184
fig = go.Figure()
185185
for electrode, wf, coord in zip(electrodes_to_plot, waveforms, coords):
186-
187186
wf_scaled = wf * y_scale_factor
188187
wf_scaled -= wf_scaled.mean()
189188
color = "red" if electrode == peak_electrode else "rgb(51, 76.5, 204)"

element_array_ephys/plotting/widget.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212

1313
def main(ephys: types.ModuleType) -> widgets:
14-
1514
# Build dropdown widgets
1615
probe_dropdown_wg = widgets.Dropdown(
1716
options=ephys.CuratedClustering & ephys_report.ProbeLevelReport,
@@ -66,7 +65,6 @@ def probe_dropdown_evt(change):
6665
)
6766

6867
def plot_probe_widget(probe_key, shank):
69-
7068
fig_name = (
7169
ephys_report.ProbeLevelReport & probe_key & f"shank={shank}"
7270
).fetch1("drift_map_plot")
@@ -92,7 +90,6 @@ def plot_probe_widget(probe_key, shank):
9290
display(go.FigureWidget(probe_fig))
9391

9492
def plot_unit_widget(unit):
95-
9693
waveform_fig, autocorrelogram_fig, depth_waveform_fig = (
9794
ephys_report.UnitLevelReport & probe_dropdown_wg.value & f"unit={unit}"
9895
).fetch1("waveform_plotly", "autocorrelogram_plotly", "depth_waveform_plotly")

element_array_ephys/probe.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,6 @@ def build_electrode_layouts(
218218
shank_spacing: float = None,
219219
y_origin="bottom",
220220
) -> list[dict]:
221-
222221
"""Builds electrode layouts.
223222
224223
Args:

element_array_ephys/readers/kilosort.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313

1414

1515
class Kilosort:
16-
1716
_kilosort_core_files = [
1817
"params.py",
1918
"amplitudes.npy",

element_array_ephys/readers/openephys.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,6 @@ def load_probe_data(self): # noqa: C901
135135
probes[probe.probe_SN] = probe
136136

137137
for probe_index, probe_SN in enumerate(probes):
138-
139138
probe = probes[probe_SN]
140139

141140
for rec in self.experiment.recordings:

0 commit comments

Comments
 (0)