Comments (3)
@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 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.
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)
- Replace model links in Jupyter notebooks
- Introduce an ``import`` or ``include`` statement
- Add erf/erfc as predefined functions?
- Fix units in documentation example
- Threshold crossing based on derivative of membrane potential
- Synapse trace value can return 0 in edge case
- Incorrect reference of spike input ports in the result of a numeric solver
- Divisions of integers not converted to divisions of doubles in generated C++ code of nestml functions HOT 5
- STDP window: Weight updates only when preSpikes are detected
- neuromodulated_stdp.nestml equations HOT 50
- third factor plasticity implementation
- ReadTheDocs build issue HOT 1
- Improve automatic model documentation generation HOT 1
- unit of Conductance
- add new synaptic current to aeif neuron HOT 4
- Change volume_transmitter API
- Add support for continuous-valued (rate) output
- Remove kernels and convolutions; introduce onReceive and onCondition for neurons
- Fix `print` functions
- Remove "inhibitory" and "excitatory" spiking input port specifiers
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nestml.