-
Notifications
You must be signed in to change notification settings - Fork 8
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
Update run-emodel example #155
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #155 +/- ##
==========================================
- Coverage 60.07% 53.45% -6.63%
==========================================
Files 109 122 +13
Lines 7838 9668 +1830
==========================================
+ Hits 4709 5168 +459
- Misses 3129 4500 +1371 ☔ View full report in Codecov by Sentry. |
examples/run_emodel/run_emodel.py
Outdated
threshold_current = feature['value'] | ||
print(feature) | ||
def getHoldingThreshCurrent(forge, res_em): | ||
from kgforge.specializations.resources import Dataset |
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.
I think we can move that to the top
elif 'soma.v.bpo_threshold_current' in feature['name']: | ||
threshold_current = feature['value'] | ||
print(feature) | ||
def getHoldingThreshCurrent(forge, res_em): |
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.
maybe set somewhere default values (None) for holding_current and threshold_current in case we can't find the EModelScript, or if we find it but holding and threshold are not set there
I have made the requested changes in the last 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!
No description provided.