Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed May 31, 2024
1 parent d13ceab commit 7d7e6a0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion share/lib/python/neuron/rxd/region.py
Original file line number Diff line number Diff line change
Expand Up @@ -933,7 +933,11 @@ def nrn_region(self, value):
raise RxDException('nrn_region must be one of: None, "i", "o"')
else:
self._nrn_region = value
if value == "i" and isinstance(self.geometry, FractionalVolume) and self.geometry._surface_fraction == 0:
if (
value == "i"
and isinstance(self.geometry, FractionalVolume)
and self.geometry._surface_fraction == 0
):
warnings.warn(
f'{self.name} is in the "i" region with a surface_fraction of 0 and will not have currents added'
)
Expand Down

0 comments on commit 7d7e6a0

Please sign in to comment.