Giter Club home page Giter Club logo

Comments (3)

kperun avatar kperun commented on June 19, 2024

@vogdb I think you are using the Java implementation of the toolchain? I have tried to use your model with PyNestML and I get weird errors which seem to be related to Sympy (?). @PTraeder and @DimitriPlotnikov here the log:
kperun@yogapad:~/Dropbox/PyNestMlAtGithub$ python2 PyNestML.py -path /home/kperun/Dropbox/mod.nestml -dev [4,int_fire4, ERROR, [13:28;13:28]]: Variable 'tau_syn_in' used before declaration! Traceback (most recent call last): File "PyNestML.py", line 29, in <module> main(sys.argv[1:]) File "/home/kperun/Dropbox/PyNestMlAtGithub/pynestml/frontend/PyNestMLFrontend.py", line 69, in main nest_generator.analyseAndGenerateNeurons(neurons) File "/home/kperun/Dropbox/PyNestMlAtGithub/pynestml/codegeneration/NestCodeGenerator.py", line 127, in analyseAndGenerateNeurons self.analyseAndGenerateNeuron(neuron) File "/home/kperun/Dropbox/PyNestMlAtGithub/pynestml/codegeneration/NestCodeGenerator.py", line 111, in analyseAndGenerateNeuron workingVersion = self.solveOdesAndShapes(workingVersion) File "/home/kperun/Dropbox/PyNestMlAtGithub/pynestml/codegeneration/NestCodeGenerator.py", line 265, in solveOdesAndShapes workingCopy = EquationsBlockProcessor.solveOdeWithShapes(_neuron) File "/home/kperun/Dropbox/PyNestMlAtGithub/pynestml/solver/EquationsBlockProcessor.py", line 54, in solveOdeWithShapes output = SymPySolver.solveOdeWithShapes(deep_copy.get_equations_blocks()) File "/home/kperun/Dropbox/PyNestMlAtGithub/pynestml/solver/SymPySolver.py", line 42, in solveOdeWithShapes output = OdeAnalyzer.compute_solution(input_json.toJSON()) File "/home/kperun/Dropbox/PyNestMlAtGithub/pynestml/solver/OdeAnalyzer.py", line 194, in compute_solution shape_functions) File "/home/kperun/Dropbox/PyNestMlAtGithub/pynestml/solver/OdeAnalyzer.py", line 207, in compute_exact_solution function_definitions) File "/home/kperun/Dropbox/PyNestMlAtGithub/pynestml/solver/prop_matrix.py", line 90, in ode_to_prop_matrices prop_matrices.append(simplify(exp(A * h))) File "/home/kperun/.local/lib/python2.7/site-packages/sympy/core/cache.py", line 93, in wrapper retval = cfunc(*args, **kwargs) File "/home/kperun/.local/lib/python2.7/site-packages/sympy/core/compatibility.py", line 794, in wrapper return user_function(*args, **kwds) File "/home/kperun/.local/lib/python2.7/site-packages/sympy/core/function.py", line 427, in __new__ result = super(Function, cls).__new__(cls, *args, **options) File "/home/kperun/.local/lib/python2.7/site-packages/sympy/core/cache.py", line 93, in wrapper retval = cfunc(*args, **kwargs) File "/home/kperun/.local/lib/python2.7/site-packages/sympy/core/compatibility.py", line 794, in wrapper return user_function(*args, **kwds) File "/home/kperun/.local/lib/python2.7/site-packages/sympy/core/function.py", line 250, in __new__ evaluated = cls.eval(*args) File "/home/kperun/.local/lib/python2.7/site-packages/sympy/functions/elementary/exponential.py", line 302, in eval return arg.exp() File "/home/kperun/.local/lib/python2.7/site-packages/sympy/matrices/matrices.py", line 2478, in exp ret = P * eJ * P.inv() File "/home/kperun/.local/lib/python2.7/site-packages/sympy/matrices/matrices.py", line 2781, in inv return self._eval_inverse(**kwargs) File "/home/kperun/.local/lib/python2.7/site-packages/sympy/matrices/dense.py", line 260, in _eval_inverse rv = M.inverse_GE(iszerofunc=iszerofunc) File "/home/kperun/.local/lib/python2.7/site-packages/sympy/matrices/matrices.py", line 2696, in inverse_GE raise ValueError("Matrix det == 0; not invertible.") ValueError: Matrix det == 0; not invertible.
Do you have any ideas what could lead to this? Unfortunately I am not even remotely familiar with the ODE toolbox.
Moreover, why does this problem occur in PyNestML and not in Java?

from nestml.

vogdb avatar vogdb commented on June 19, 2024

@vogdb I think you are using the Java implementation of the toolchain?

Yep.

All other questions seem to be related to the contributors. I don't know answers to them :(

from nestml.

clinssen avatar clinssen commented on June 19, 2024

I cannot reproduce this issue and will assume it has been fixed in the mean time. If you still run into it, please let me know!

from nestml.

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.