Closed Yuri05 closed 4 years ago
this is actually something that should be forbidden upon model construction. I will throw an error from Core
Reason is
if the Model is named Organism
and the first container is called Organism
, our keyword replaced are trying to avoid creating duplicated path. They always add the name only if it's not alread there at the root of the path. This gets tricky with neighborhood referencing path etc..
There is probably a way to make this happen but because it's such a weird case, I am going to prevent it from happening at the first place
This will be the message
The simulation name cannot be one of the following reserved terms:
'Organism', 'Neighborhoods', 'A', 'B', 'D', 'C', 'E', 'F'.
Please rename your simulation.
If I try to create a simulation named e.g. "Organism" or "Neighborhoods" an Object reference not set is thrown. An explicit message would be better.
Also it's possible to give a simulation one of the existing enzyme names (e.g. "CYP1A2"). Such a simulation can be created in PK-Sim. If exported to MoBi, it then crashes when configuring etc.