Open-Systems-Pharmacology/MoBi

Copy-paste formulas

Closed this issue · 0 comments

It is quite often that I want to transfer a formula from one building block to another and modify it later. One workaround for this is to copy a parameter that uses this formula, which also copies the formula. However, this does not work for IC and PV BBs.

A simple use case would be a module that adds an endosomal compartment to the bone organ. The volume of lysosome is about 2% of the intracellular volume. Therefore, I want to adjust the formula of Bone|Intracellular to f_cell*V * (1 - 0.02). I can do this in the PV BB of the new "Lysosome" module. However, I cannot copy the existing formula f_cell*V and must define it by hand. This is doable for this simple formula but might become unfeasible for more complex formulas.

A great solution (and during the last years I very often wished for this function) would be to copy formulas.

  1. In the Spatial Stuctures BB go to tab "Fomrulas", select the formula VOLUME_cell_4Comp, copy it

image

  1. In the PV BB, go to the thab "Formulas", and past the new formula

image