Skip to content
This repository was archived by the owner on Feb 26, 2025. It is now read-only.

Commit 9207102

Browse files
author
Jaquier Aurélien Tristan
committed
style fix
1 parent 635528f commit 9207102

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

bluepyopt/ephys/create_hoc.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,14 @@ def range_exprs_to_hoc(range_params):
109109
value = re.sub('{distance}', FLOAT_FORMAT, value)
110110
value = re.sub('{value}', format_float(param.value), value)
111111
if hasattr(param.value_scaler, "step_begin"):
112-
value = re.sub('{step_begin}', format_float(param.value_scaler.step_begin), value)
113-
value = re.sub('{step_end}', format_float(param.value_scaler.step_end), value)
112+
value = re.sub(
113+
'{step_begin}',
114+
format_float(param.value_scaler.step_begin),
115+
value
116+
)
117+
value = re.sub(
118+
'{step_end}', format_float(param.value_scaler.step_end), value
119+
)
114120
ret.append(Range(param.location, param.name, value))
115121
return ret
116122

bluepyopt/ephys/parameterscalers/parameterscalers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ def acc_scale_iexpr(self, value, constant_formatter=format_float):
269269

270270

271271
class NrnSegmentSomaDistanceStepScaler(NrnSegmentSomaDistanceScaler,
272-
ParameterScaler, DictMixin):
272+
ParameterScaler, DictMixin):
273273

274274
"""Scaler based on distance from soma with a step function"""
275275
SERIALIZED_FIELDS = ('name', 'comment', 'distribution', )

0 commit comments

Comments
 (0)