Skip to content

Commit

Permalink
Merge pull request #106 from BlueBrain/dct
Browse files Browse the repository at this point in the history
decay_time_constant_after_stim default on failing is None and not -1
  • Loading branch information
AurelienJaquier authored Jul 17, 2024
2 parents a60e9b3 + 44691a5 commit c303487
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions emodelrunner/factsheets/physiology_features.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,17 @@ def extract_physiology_features(
)

voltage_base = efel_results[0]["voltage_base"][0]
dct = efel_results[0]["decay_time_constant_after_stim"][0]
dct = efel_results[0]["decay_time_constant_after_stim"]
dct = dct[0] if dct is not None else dct

trace["decay_start_after_stim"] = efel_results[0]["voltage_base"]
trace["stimulus_current"] = [current_amplitude]

efel_results = efel.getFeatureValues([trace], ["ohmic_input_resistance_vb_ssse"])
input_resistance = efel_results[0]["ohmic_input_resistance_vb_ssse"][0]
input_resistance = efel_results[0]["ohmic_input_resistance_vb_ssse"]
input_resistance = (
input_resistance[0] if input_resistance is not None else input_resistance
)

return [voltage_base, input_resistance, dct]

Expand Down

0 comments on commit c303487

Please sign in to comment.