Skip to content

Commit

Permalink
lint check
Browse files Browse the repository at this point in the history
Change-Id: Ib2e97450eb5ea5415d025f2deaf75e50c7e18a8e
  • Loading branch information
Jaquier Aurélien Tristan committed Jun 24, 2024
1 parent 50380a9 commit 8a0c42f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion bluepyemodel/access_point/forge_access_point.py
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ def fetch(self, filters, cross_bucket=None):
"""
if "type" not in filters and "id" not in filters:
raise AccessPointException("Search filters should contain either 'type' or 'id'.")

if cross_bucket is None:
cross_bucket = self.cross_bucket

Expand Down
9 changes: 4 additions & 5 deletions bluepyemodel/access_point/nexus.py
Original file line number Diff line number Diff line change
Expand Up @@ -1070,8 +1070,6 @@ def get_available_mechanisms(self, filters=None):
# do not look in other projects for these resources,
# because resources have 'full' metadata only in a few projects.
resources = self.access_point.fetch(filter, cross_bucket=False)


if resources is None:
logger.warning("No SubCellularModelScript mechanisms available")
return None
Expand Down Expand Up @@ -1105,8 +1103,10 @@ def get_available_mechanisms(self, filters=None):
elif ep.type == "CurrentDensity":
if not hasattr(ep, "ionName"):
logger.warning(
f"Will not add {ep.name} current, "
f"because 'ionName' field was not found in {r.name}."
"Will not add %s current, "
"because 'ionName' field was not found in %s.",
ep.name,
r.name,
)
elif ep.ionName == "non-specific":
non_specific_currents.append(ep.name)
Expand All @@ -1119,7 +1119,6 @@ def get_available_mechanisms(self, filters=None):
# remove duplicates
ionic_concentrations = list(set(ionic_concentrations))


mech = MechanismConfiguration(
r.name,
location=None,
Expand Down

0 comments on commit 8a0c42f

Please sign in to comment.