Skip to content
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

Merged
merged 10 commits into from
Jan 26, 2024
Merged

Conversation

AurelienJaquier
Copy link
Collaborator

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})))"}

@AurelienJaquier AurelienJaquier self-assigned this Jan 25, 2024
Jaquier Aurélien Tristan added 2 commits January 26, 2024 09:23
@codecov-commenter
Copy link

codecov-commenter commented Jan 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (f56a38f) 87.31% compared to head (37162af) 87.37%.

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.
📢 Have feedback on the report? Share it here.

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.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

respectively ;)

Copy link
Collaborator Author

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

Copy link
Collaborator

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

@AurelienJaquier AurelienJaquier merged commit e05921d into master Jan 26, 2024
5 checks passed
@AurelienJaquier AurelienJaquier deleted the numpy-scaler branch January 26, 2024 10:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants