small improvements of ion channel modeling form#390
Conversation
|
As discussed today, I removed the entitysdk-dependent stuff from the PR so that we can merge it quickly. I will create another PR with the entitysdk registration code once entitysdk has all the needed functionnality. |
|
Done! |
james-isbister
left a comment
There was a problem hiding this comment.
Looks good!
- Could the three variables with:
default=-1be changed to optional parameters with a default of None? This will be better for the UI I think
Also for this to be useable by core-web-app, we need to add it as an endpoint by adding the scan config here:
We should then create an example notebook similar to:
https://github.com/openbraininstitute/obi-one/blob/main/examples/A_service_and_entitycore/circuit_simulation/entitysdk_circuit_simulations.ipynb
which:
- Shows a working example from in Python
- Shows a valid configuration which works when the service is launched using
make run-local. Obviously this doesn't persist anything for now
The -1 here are not placeholders for None, they are actual values to be used. The fitting performs better when the end of stimulus is taken 1 ms before what is given by the file.
I added an example. However, it fails for now, since |
|
Ok, then I think it would be good to include that -1 is good in explanation in the description of the 3 parameters. And if the value is relative to the end of the file, then could they maybe be NonPositiveFloats which corresponds to le=0? Once we have that I think we can merge, and fix the remaining issues when we have the entities? |
Done in latest commit
While I expect people to use 0 or negative values here most of the time, there might be use cases where they have to use positive floats, so I would not like to restrain it more than necessary.
Ok, good to be merged form my point of view! |
|
There was a bug in efel when the This PR is good to be merged imo |
No description provided.