Skip to content

Commit

Permalink
Blackify
Browse files Browse the repository at this point in the history
  • Loading branch information
CBroz1 committed Feb 7, 2024
1 parent 42c33f5 commit 0218b4f
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/spyglass/utils/dj_mixin.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,10 @@ def _nwb_table_tuple(self) -> tuple:
Used to determine fetch_nwb behavior. Also used in Merge.fetch_nwb.
Implemented as a cached_property to avoid circular imports."""
from spyglass.common.common_nwbfile import AnalysisNwbfile, Nwbfile # noqa F401
from spyglass.common.common_nwbfile import (
AnalysisNwbfile,
Nwbfile,
) # noqa F401

table_dict = {
AnalysisNwbfile: "analysis_file_abs_path",
Expand All @@ -71,9 +74,7 @@ def _nwb_table_tuple(self) -> tuple:
resolved = getattr(self, "_nwb_table", None) or (
AnalysisNwbfile
if "-> AnalysisNwbfile" in self.definition
else Nwbfile
if "-> Nwbfile" in self.definition
else None
else Nwbfile if "-> Nwbfile" in self.definition else None
)

if not resolved:
Expand Down

0 comments on commit 0218b4f

Please sign in to comment.