-
Notifications
You must be signed in to change notification settings - Fork 32
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
AttributeError: 'Property' object has no attribute 'includes' #91
Comments
Hrm, no, it doesn't get past the LEMS file to get to the NeuroML file at all, and the LEMS file does have includes in it. <Lems>
<!--
This LEMS file has been automatically generated using PyNeuroML v0.5.6 (libNeuroML v0.2.52)
-->
<!-- Specify which component to run -->
<Target component="example_izhikevich2007network_sim"/>
<!-- Include core NeuroML2 ComponentType definitions -->
<Include file="Cells.xml"/>
<Include file="Networks.xml"/>
<Include file="Simulation.xml"/>
<Include file="izhikevich2007_network.nml"/>
<Simulation id="example_izhikevich2007network_sim" length="10000ms" step="0.1ms" target="IzNet" seed="123"> <!-- Note seed: ensures same random numbers used every run -->
<EventOutputFile id="pop0" fileName="example_izhikevich2007network_sim.spikes.dat" format="ID_TIME">
<EventSelection id="0" select="IzPop0/0" eventPort="spike"/>
<EventSelection id="1" select="IzPop0/1" eventPort="spike"/>
<EventSelection id="2" select="IzPop0/2" eventPort="spike"/>
<EventSelection id="3" select="IzPop0/3" eventPort="spike"/>
<EventSelection id="4" select="IzPop0/4" eventPort="spike"/>
</EventOutputFile>
</Simulation>
</Lems> |
@sanjayankur31 I've added a check at each pynml option to see if it's a LEMS or NML file, depending on what the option expects. If it gets the wrong one, it prints a warning which should help avoid this: Note: it's only a simple check on the name of the file (LEMS_* or *.nml), and doesn't prevent the option being executed, but should catch most cases. |
OK, that'll do for a start. (I still don't like that it can cause a crash with an ugly stacktrace 😆 ) |
Description
While using the
-graph
option withpynml
on a simple network example,pynml
crashes with this error.Versions of software
How reproducible
Always
Steps to reproduce
So:
pynml -graph
:Additional information
jnml
seems to work fine:I expect it's because it's looking for includes in
for include in nml2_doc.includes
, but this rather simple NeuroML document generated by this doesn't have any includes?The text was updated successfully, but these errors were encountered: