Skip to content

small improvements of ion channel modeling form#390

Merged
AurelienJaquier merged 22 commits intomainfrom
icmodel
Oct 21, 2025
Merged

small improvements of ion channel modeling form#390
AurelienJaquier merged 22 commits intomainfrom
icmodel

Conversation

@AurelienJaquier
Copy link
Contributor

No description provided.

@AurelienJaquier AurelienJaquier marked this pull request as ready for review October 14, 2025 12:47
@AurelienJaquier
Copy link
Contributor Author

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.

@james-isbister
Copy link
Collaborator

james-isbister commented Oct 15, 2025

@AurelienJaquier
Copy link
Contributor Author

Done!

Copy link
Collaborator

@james-isbister james-isbister left a comment

Choose a reason for hiding this comment

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

Looks good!

  • Could the three variables with: default=-1 be 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:

(ContributeMorphologyScanConfig, "generate", ""),

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:

  1. Shows a working example from in Python
  2. Shows a valid configuration which works when the service is launched using make run-local. Obviously this doesn't persist anything for now

@AurelienJaquier
Copy link
Contributor Author

* Could the three variables with: `default=-1` be changed to optional parameters with a default of None? This will be better for the UI I think

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.

Also for this to be useable by core-web-app, we need to add it as an endpoint by adding the scan config here:

(ContributeMorphologyScanConfig, "generate", ""),

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:

1. Shows a working example from in Python

2. Shows a valid configuration which works when the service is launched using `make run-local`. Obviously this doesn't persist anything for now

I added an example. However, it fails for now, since _single_entity is of type Any for now, since we do not have the entitysdk implementation yet.

@james-isbister
Copy link
Collaborator

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?

@AurelienJaquier
Copy link
Contributor Author

Ok, then I think it would be good to include that -1 is good in explanation in the description of the 3 parameters.

Done in latest commit

And if the value is relative to the end of the file, then could they maybe be NonPositiveFloats which corresponds to le=0?

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.

Once we have that I think we can merge, and fix the remaining issues when we have the entities?

Ok, good to be merged form my point of view!

@AurelienJaquier
Copy link
Contributor Author

There was a bug in efel when the *_stim_end_correction value was too high. This is fixed now with this efel PR: openbraininstitute/eFEL#10

This PR is good to be merged imo

@james-isbister james-isbister self-requested a review October 21, 2025 14:54
@AurelienJaquier AurelienJaquier merged commit 120b1be into main Oct 21, 2025
4 checks passed
@AurelienJaquier AurelienJaquier deleted the icmodel branch October 21, 2025 15:09
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.

2 participants