Coder Social home page Coder Social logo

Comments (4)

sanjayankur31 avatar sanjayankur31 commented on July 24, 2024

I'm not sure if this is consistent. When using NEURON, one must use the /../ form, it does not accept the `[ ]/' form at all.

This works:

    simulation.add_column_to_output_file("output0",
                                         column_id="pop0_0_v_Seg1_dend_1",
                                         quantity="pop0/0/olm/7/v")

but this does not:

    simulation.add_column_to_output_file("output0",
                                         column_id="pop0_0_v_Seg1_dend_1",
                                         quantity="pop0[0]/olm/7/v")

It results in a NEURON writer error, so either there's a bug in the writer class, or there's another reason why this doesn't work:

Exception in thread "main" java.lang.NullPointerException
        at org.neuroml.export.neuron.LEMSQuantityPathNeuron.getExposure(LEMSQuantityPathNeuron.java:91)
        at org.neuroml.export.neuron.LEMSQuantityPathNeuron.getExposure(LEMSQuantityPathNeuron.java:117)
        at org.neuroml.export.neuron.LEMSQuantityPathNeuron.getDimension(LEMSQuantityPathNeuron.java:151)
        at org.neuroml.export.neuron.NeuronWriter.getMainScript(NeuronWriter.java:1400)
        at org.neuroml.export.neuron.NeuronWriter.generateMainScriptAndMods(NeuronWriter.java:277)
        at org.neuroml.export.neuron.NeuronWriter.generateAndRun(NeuronWriter.java:155)
        at org.neuroml.JNeuroML.main(JNeuroML.java:517)

I'm also unclear why one has to mention the name of the cell component (olm) in this case here.

from documentation.

sanjayankur31 avatar sanjayankur31 commented on July 24, 2024

Using [0] works fine in the izhikevich example, even with NEURON, so it looks like it works for cells that do not have multiple compartments. Again, not sure if this is a LEMS thing or an export bug.

from documentation.

sanjayankur31 avatar sanjayankur31 commented on July 24, 2024

@pgleeson, using indexing without the cell name does not work. So here's what I have so far. Noting this here so I can remove it from the example in the docs.

    simulation.add_column_to_output_file("output0",
                                         column_id="pop0_0_v_Seg1_dend_1",
                                         quantity="pop0/0/olm/7/v")
    # TODO: why does the name of the cell component have to be included? This
    # does not work, for example.
    """
    simulation.add_column_to_output_file("output0",
                                         column_id="pop0_0_v_Seg1_dend_1",
                                         quantity="pop0/0/7/v")
    """
    # TODO: why does indexing not work in this population?
    """
    simulation.add_column_to_output_file("output0",
                                         column_id="pop0_0_v_Seg1_dend_1",
                                         quantity="pop0[0]/olm/7/v")


    """
    # TODO: this does not work
    """
    simulation.add_column_to_output_file("output0",
                                         column_id="pop0_0_v_Seg1_dend_1",
                                         quantity="pop0[0]/7/v")
    """

All the cases that do not work give errors of this form:

Exception in thread "main" java.lang.NullPointerException
        at org.neuroml.export.neuron.LEMSQuantityPathNeuron.getExposure(LEMSQuantityPathNeuron.java:91)
        at org.neuroml.export.neuron.LEMSQuantityPathNeuron.getExposure(LEMSQuantityPathNeuron.java:117)
        at org.neuroml.export.neuron.LEMSQuantityPathNeuron.getDimension(LEMSQuantityPathNeuron.java:151)
        at org.neuroml.export.neuron.NeuronWriter.getMainScript(NeuronWriter.java:1400)
        at org.neuroml.export.neuron.NeuronWriter.generateMainScriptAndMods(NeuronWriter.java:277)
        at org.neuroml.export.neuron.NeuronWriter.generateAndRun(NeuronWriter.java:155)
        at org.neuroml.JNeuroML.main(JNeuroML.java:517)

from documentation.

sanjayankur31 avatar sanjayankur31 commented on July 24, 2024

Duplicate of #15

from documentation.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.