{"action":"created","issue":{"url":"https://api.github.com/repos/NeuroML/org.neuroml.export/issues/46","repository_url":"https://api.github.com/repos/NeuroML/org.neuroml.export","labels_url":"https://api.github.com/repos/NeuroML/org.neuroml.export/issues/46/labels{/name}","comments_url":"https://api.github.com/repos/NeuroML/org.neuroml.export/issues/46/comments","events_url":"https://api.github.com/repos/NeuroML/org.neuroml.export/issues/46/events","html_url":"https://github.com/NeuroML/org.neuroml.export/issues/46","id":137665180,"number":46,"title":"Workarounds for fractionAlong != (0 or 1)?","user":{"login":"JustasB","id":10732358,"avatar_url":"https://avatars.githubusercontent.com/u/10732358?v=3","gravatar_id":"","url":"https://api.github.com/users/JustasB","html_url":"https://github.com/JustasB","followers_url":"https://api.github.com/users/JustasB/followers","following_url":"https://api.github.com/users/JustasB/following{/other_user}","gists_url":"https://api.github.com/users/JustasB/gists{/gist_id}","starred_url":"https://api.github.com/users/JustasB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JustasB/subscriptions","organizations_url":"https://api.github.com/users/JustasB/orgs","repos_url":"https://api.github.com/users/JustasB/repos","events_url":"https://api.github.com/users/JustasB/events{/privacy}","received_events_url":"https://api.github.com/users/JustasB/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-03-01T19:34:42Z","updated_at":"2016-03-23T17:37:42Z","closed_at":null,"body":"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:\r\n\r\n`Cannot yet handle fractionAlong being neither 0 or 1`\r\n\r\nIf I set the fractionAlong to 0 or 1, it introduces small errors in the voltage during simulation.\r\n\r\nMy example NML is:\r\n\r\n```\r\n            <segment id=\"1\" name=\"Seg0_priden\">\r\n                <parent fractionAlong=\"1\" segment=\"0\"/>\r\n                <proximal y=\"-3.005222e+00\" x=\"4.340876e+00\" z=\"6.010444e+00\" diameter=\"5.000000e-01\"/>\r\n                <distal y=\"-7.102542e+01\" x=\"1.025923e+02\" z=\"1.420508e+02\" diameter=\"5.000000e-01\"/>\r\n            </segment>\r\n            <segment id=\"2\" name=\"Seg0_priden2_0\">\r\n                <parent ****fractionAlong=\"0.8\"**** segment=\"1\"/>\r\n                <proximal y=\"-3.005222e+00\" x=\"4.340876e+00\" z=\"6.010444e+00\" diameter=\"4.000000e-01\"/>\r\n                <distal y=\"-9.691841e+01\" x=\"1.399933e+02\" z=\"1.938368e+02\" diameter=\"4.000000e-01\"/>\r\n            </segment>\r\n```\r\nIs 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.\r\n\r\n@pgleeson \r\n"},"comment":{"url":"https://api.github.com/repos/NeuroML/org.neuroml.export/issues/comments/200458821","html_url":"https://github.com/NeuroML/org.neuroml.export/issues/46#issuecomment-200458821","issue_url":"https://api.github.com/repos/NeuroML/org.neuroml.export/issues/46","id":200458821,"user":{"login":"pgleeson","id":1556687,"avatar_url":"https://avatars.githubusercontent.com/u/1556687?v=3","gravatar_id":"","url":"https://api.github.com/users/pgleeson","html_url":"https://github.com/pgleeson","followers_url":"https://api.github.com/users/pgleeson/followers","following_url":"https://api.github.com/users/pgleeson/following{/other_user}","gists_url":"https://api.github.com/users/pgleeson/gists{/gist_id}","starred_url":"https://api.github.com/users/pgleeson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pgleeson/subscriptions","organizations_url":"https://api.github.com/users/pgleeson/orgs","repos_url":"https://api.github.com/users/pgleeson/repos","events_url":"https://api.github.com/users/pgleeson/events{/privacy}","received_events_url":"https://api.github.com/users/pgleeson/received_events","type":"User","site_admin":false},"created_at":"2016-03-23T17:37:42Z","updated_at":"2016-03-23T17:37:42Z","body":"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."}}