Code Monkey home page Code Monkey logo

Comments (3)

samseaver avatar samseaver commented on September 4, 2024

I figured out that this was an interesting case of the code not removing old biomass reactions, and when I went back to a previous one, it rejected it because it was already in the REACTION_MODEL table, along with 5 other biomass reactions.

However, when I deleted the biomass reactions for my model in the database directly, I still got this error message:

ModelDriver encountered an unrecoverable error:

Can't call method "database" on an undefined value at /home/seaver/ModelSEEDCore/lib/ModelSEED/FIGMODEL/FIGMODELdata.pm line 48.

Model-SEED-core revision: cd06ebe

The biomass reaction was still inserted correctly into the database though.

from model-seed-core.

samseaver avatar samseaver commented on September 4, 2024

OK, here's more data:

The whole thing falls apart in FIGMODELmodel when doing this:

            $self->ppo()->biomassReaction($newBiomass)

So, it's unable to update its own PPO object. The result is that there's no synchrony between the biomass reaction in the REACTION_MODEL table and the biomass reaction in the MODEL table, and thereafter, I get weird errors.

from model-seed-core.

cshenry avatar cshenry commented on September 4, 2024

This bug was introduced in commits:
2571b58
When this line was added to FIGMODEL->new():
ModelSEED::globals::SETFIGMODEL($self);
You absolutely positively cannot do this in FIGMODEL->new(). I understand this was introduced to solve a bug, but it must be solved a different way. If you do this in FIGMODEL->new(), the global FIGMODEL is reset everytime you create a new FIGMODEL, and very very bad things happen.

from model-seed-core.

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.