-
Notifications
You must be signed in to change notification settings - Fork 98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New scaler: NrnSegmentSomaDistanceStepScaler #484
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #484 +/- ##
==========================================
+ Coverage 87.31% 87.37% +0.05%
==========================================
Files 50 50
Lines 4329 4347 +18
==========================================
+ Hits 3780 3798 +18
Misses 549 549 ☔ View full report in Codecov by Sentry. |
distribution (str): distribution of parameter dependent on distance | ||
from soma. string can contain `distance` and/or `value` as | ||
placeholders for the distance to the soma and parameter value | ||
respectivily. It can also contain step_begin and step_end. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
respectively ;)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks, fixed in latest commit
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks! looks good to merge
Add a new scaler that can handle step functions. Useful to do a calcium hotspot.
Can also be hoc exportable with this kind of distribution:
{"fun": "{value} * (0.1 + 0.9 * int(({distance} > {step_begin}) & ({distance} < {step_end})))"}