Skip to content

functions is not recognized #102

@himoto

Description

@himoto

Hi, thanks for developing and maintaining the amazing tool!

Reproduce:

I am testing a simple Michaelis-Menten model provided in BioNetGen. I installed this file locally and renamed it "mm.net".

When running the following code,

using ReactionNetworkImporters
using Sundials

fname = "mm.net"
prnbng = loadrxnetwork(BNGNetwork(), fname);
rn = prnbng.rn;
tf = 1000.0
oprob = ODEProblem(rn, Float64[], (0.0, tf), Float64[])
sol = solve(oprob,CVODE_BDF(), saveat = tf / 1000.0)

Although michment is defined at line 11 (begin functions ~ end functions section), I got the following message.

UndefVarError: michment not defined

I would like to know whether the functions definition is supported in this package.

Version info

  • Julia: v1.7
  • ReactionNetworkImporters.jl: v0.14

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