Skip to content

Commit

Permalink
Black formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
kushalbakshi committed Oct 25, 2023
1 parent 5e2d7be commit 6c6afe4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
8 changes: 5 additions & 3 deletions element_array_ephys/probe.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,12 @@ def create_neuropixels_probe(probe_type: str = "neuropixels 1.0 - 3A"):
npx_probes_config["neuropixels 2.0 - MS"] = npx_probes_config["NP2010"]

probe_type = {"probe_type": probe_type}
probe_params = dict(zip(
probe_params = dict(
zip(
probe_geometry.geom_param_names,
npx_probes_config[probe_type["probe_type"]]
))
npx_probes_config[probe_type["probe_type"]],
)
)
electrode_layouts = probe_geometry.build_npx_probe(
**{**probe_params, **probe_type}
)
Expand Down
5 changes: 1 addition & 4 deletions element_array_ephys/readers/spikeglx.py
Original file line number Diff line number Diff line change
Expand Up @@ -451,10 +451,7 @@ def _transform_geom_to_shank(self):
from . import probe_geometry

probe_params = dict(
zip(
probe_geometry.geom_param_names,
probe_geometry.M[self.probe_PN]
)
zip(probe_geometry.geom_param_names, probe_geometry.M[self.probe_PN])
)
probe_params["probe_type"] = self.probe_PN
elec_pos_df = probe_geometry.build_npx_probe(**probe_params)
Expand Down
1 change: 1 addition & 0 deletions notebooks/tutorial_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ def get_ephys_root_data_dir():
else:
raise TypeError("`ephys_root_data_dir` must be a string, pathlib, or list")


# Activate schemas
lab.activate(db_prefix + "lab")
subject.activate(db_prefix + "subject", linking_module=__name__)
Expand Down

0 comments on commit 6c6afe4

Please sign in to comment.