Skip to content
This repository was archived by the owner on Jun 24, 2022. It is now read-only.
This repository was archived by the owner on Jun 24, 2022. It is now read-only.

PyDSTool error  #15

Description

@omertzuk

I have tried to run the example for using PyDSTool and it gave me the following error message:

bif = bifurcation_curve(PC,"EP-C",["i"],
                               max_num_points=450,
                               max_stepsize=2,min_stepsize=1e-5,
                               stepsize=2e-2,loc_bif_points="all",
                               save_eigen=true,name="EQ1",
                               print_info=true,calc_stab=true)
ERROR: PyError ($(Expr(:escape, :(ccall(#= /home/ohm/.julia/packages/PyCall/0jMpb/src/pyfncall.jl:44 =# @pysym(:PyObject_Call), PyPtr, (PyPtr, PyPtr, PyPtr), o, pyargsptr, kw))))) <class 'TypeError'>
TypeError("'float' object cannot be interpreted as an integer",)
  File "/home/ohm/.julia/conda/3/lib/python3.6/site-packages/PyDSTool/PyCont/Continuation.py", line 1246, in forward
    self._compute(v0=self.initdirec)
  File "/home/ohm/.julia/conda/3/lib/python3.6/site-packages/PyDSTool/PyCont/Continuation.py", line 1102, in _compute
    self._createTestFuncs()
  File "/home/ohm/.julia/conda/3/lib/python3.6/site-packages/PyDSTool/PyCont/Continuation.py", line 2035, in _createTestFuncs
    save=True, numpoints=self.MaxNumPoints+1)
  File "/home/ohm/.julia/conda/3/lib/python3.6/site-packages/PyDSTool/PyCont/TestFunc.py", line 719, in __init__
    BiAltMethod.__init__(self, (F.n, 1), F, C, save=save, numpoints=numpoints)
  File "/home/ohm/.julia/conda/3/lib/python3.6/site-packages/PyDSTool/PyCont/TestFunc.py", line 381, in __init__
    self.data.P = zeros((n*(n-1)/2, n*(n-1)/2), float)

Stacktrace:
 [1] pyerr_check at /home/ohm/.julia/packages/PyCall/0jMpb/src/exception.jl:60 [inlined]
 [2] pyerr_check at /home/ohm/.julia/packages/PyCall/0jMpb/src/exception.jl:64 [inlined]
 [3] macro expansion at /home/ohm/.julia/packages/PyCall/0jMpb/src/exception.jl:84 [inlined]
 [4] __pycall!(::PyObject, ::Ptr{PyCall.PyObject_struct}, ::PyObject, ::Ptr{Nothing}) at /home/ohm/.julia/packages/PyCall/0jMpb/src/pyfncall.jl:44
 [5] _pycall!(::PyObject, ::PyObject, ::Tuple{}, ::Int64, ::Ptr{Nothing}) at /home/ohm/.julia/packages/PyCall/0jMpb/src/pyfncall.jl:22
 [6] #call#89 at /home/ohm/.julia/packages/PyCall/0jMpb/src/pyfncall.jl:11 [inlined]
 [7] (::PyObject)() at /home/ohm/.julia/packages/PyCall/0jMpb/src/pyfncall.jl:89
 [8] #bifurcation_curve#5(::Int64, ::Int64, ::Float64, ::Float64, ::String, ::Bool, ::String, ::Bool, ::Bool, ::Float64, ::Float64, ::Float64, ::Nothing, ::Array{Symbol,1}, ::typeof(bifurcation_curve), ::PyObject, ::String, ::Array{String,1}) at /home/ohm/.julia/packages/PyDSTool/nreJ8/src/bifurcation.jl:107
 [9] (::getfield(PyDSTool, Symbol("#kw##bifurcation_curve")))(::NamedTuple{(:max_num_points, :max_stepsize, :min_stepsize, :stepsize, :loc_bif_points, :save_eigen, :name, :print_info, :calc_stab),Tuple{Int64,Int64,Float64,Float64,String,Bool,String,Bool,Bool}}, ::typeof(bifurcation_curve), ::PyObject, ::String, ::Array{String,1}) at ./none:0
 [10] top-level scope at none:0

julia>

What could be the problem?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions