Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems when reffering to parameters in MoBi #331

Closed
ErikssonJ opened this issue May 22, 2019 · 6 comments

Comments

Projects
None yet
2 participants
@ErikssonJ
Copy link

commented May 22, 2019

Hi! I have added new parameters in MoBi and when I want to refer to these parameters in the formula to another parameter, I get an error message that the parameter cannot be found. I've draged the parameter from the "References to add"-list. And I've tried to used both relative and absolute path. I have also tried to put the parameters in different places within MoBi (for example in MolecularProperties within a subcompartment and in passive transport). What could be the problem?

@msevestre

This comment has been minimized.

Copy link
Member

commented May 22, 2019

@ErikssonJ Very hard to say.
Can you please create a very small example (mobi project), save it, zip it, and upload it here? That way we can check it out and let you know what's wrong

Parameter referencing parameter is the essence of MoBi. So the fix should be pretty simple (famous last word)

@ErikssonJ

This comment has been minimized.

Copy link
Author

commented May 22, 2019

Here is a quick example of the problem:
Example_problem_with_parameters.zip

@msevestre msevestre transferred this issue from Open-Systems-Pharmacology/Forum May 22, 2019

@ErikssonJ

This comment has been minimized.

Copy link
Author

commented May 22, 2019

I get the same problem if I put the parameters in MolecularProperties in interstitial (lung). Is it not possible to refer to a parameter located in the same place? Or am I doing something wrong when referring?
Example_problem_with_parameters_2.zip

@msevestre

This comment has been minimized.

Copy link
Member

commented May 22, 2019

Ok there are some confusions on how the paths are being resolved

image

If you write MOLECULE|fraction of dose, it is assume that the parameter will be a global parameter under the global container named after the MOLECULE. In your case, you want it to be the local parameter so the path should be ..|fraction of dose (e.g. go to my parent container .. and find the parameter called fraction of dose). The same for ..|initial_amount

The same goes with the passive transport. If you replace the path by ..|initial_amount it will work as expected

I have attached the modified example. Hope that helps. (Also going to move this one back to the forum sonce this is not a bug after all)

@msevestre

This comment has been minimized.

@msevestre msevestre transferred this issue from Open-Systems-Pharmacology/MoBi May 22, 2019

@ErikssonJ

This comment has been minimized.

Copy link
Author

commented May 23, 2019

I just used the drag-and-drop function from the "References to add"-list and then that was the path given. But when changing to the path you wrote it works now, thank you for your help!

@msevestre msevestre closed this Jun 18, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.