KarrLab / wc_sim

A multi-algorithmic simulator for whole-cell models
MIT License
6 stars 2 forks source link

Avoid usage of obj_model.Model.Manager.get_one which lacks the context of a specific model #22

Closed jonrkarr closed 6 years ago

jonrkarr commented 6 years ago

obj_model.Manager.get_one provides search over all models in memory. Using this limits wc_sim to a single model in memory at a time and requires the use of the obj_model.Manager.reset method which is not obvious and cumbersome.

These function calls should be replaced with obj_model.RelatedManager.get_one which provides search over a single model.

jonrkarr commented 6 years ago

Implemented in 67fa068c6c97ca6c75486943f78f2b0f07ddeac5 and f16bb1c0fe799bea0223db56e680333b4470abff