-
Notifications
You must be signed in to change notification settings - Fork 11
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
Workarounds for fractionAlong != (0 or 1)? #46
Comments
@JustasB there is a quick fix for this (implemented locally here) if the parent segmentGroup/section has only one segment in it (i.e. use the fraction along the segment as fraction along the segmentGroup). Is this the case for you? |
@pgleeson Yes, just one segment is in the parent segment. |
I've just committed a fix for this (with just one segment in the parent segment) on the dveelopment branch. Rebuild jNeuroML from source on the development branches and you should have the fix. |
I have a NEURON model where the segments are connected at non 0 or 1 parent locations, resulting in NML that uses e.g. fractionAlong="0.8" or "0.517...". When I use jnml to convert LEMS file to neuron, it results in the following error:
Cannot yet handle fractionAlong being neither 0 or 1
If I set the fractionAlong to 0 or 1, it introduces small errors in the voltage during simulation.
My example NML is:
Is the best workaround for this issue to split the parent segment into two segments along the non-integer fraction of the parent segment's length? If so, I'll include this in the error message text and submit a pull-request.
@pgleeson
The text was updated successfully, but these errors were encountered: