Coder Social home page Coder Social logo

Comments (2)

dweindl avatar dweindl commented on July 23, 2024

Check why we try to compute log(0) there.

Some log-scale parameters have a nominal value of 0 (parameter table discussion).

from amici.

dweindl avatar dweindl commented on July 23, 2024

Needs to be checked whether this is an issue in amici or petab:

/home/runner/.local/lib/python3.11/site-packages/amici/petab/simulations.py:204: in simulate_petab
    fill_in_parameters(
/home/runner/.local/lib/python3.11/site-packages/amici/petab/conditions.py:76: in fill_in_parameters
    fill_in_parameters_for_condition(
/home/runner/.local/lib/python3.11/site-packages/amici/petab/conditions.py:148: in fill_in_parameters_for_condition
    map_sim_fix = {
/home/runner/.local/lib/python3.11/site-packages/amici/petab/conditions.py:149: in <dictcomp>
    key: _get_par(key, val, map_sim_fix)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

model_par = 'initial__Cyt__CCND_sim', value = 'ic_wt_Cyt__CCND'
mapping = {'_InitialConc1': 60220000000.0, '_InitialConc10': 50629691000.0, '_InitialConc11': 4648479700.0, '_InitialConc12': 242609110000.0, ...}

    def _get_par(model_par, value, mapping):
        """Replace parameter IDs in mapping dicts by values from
        problem_parameters where necessary"""
        if isinstance(value, str):
            try:
                # estimated parameter
                return problem_parameters[value]
            except KeyError:
                # condition table overrides must have been handled already,
                # e.g. by the PEtab parameter mapping, but parameters from
                # InitialAssignments may still be present.
>               if mapping[value] == model_par:
E               KeyError: 'ic_wt_Cyt__CCND'

/home/runner/.local/lib/python3.11/site-packages/amici/petab/conditions.py:131: KeyError

from amici.

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.