Feature #1307
openSupply several model databases
0%
Description
Instead of specifying one model database, why wouldn't we allow user to specify several? This way, a user could run models both from the "default" file shipped with ldv-tools, and from his or her own one he or she keeps in his or her home folder named after him or her.
As far as I understand, it would require fixing Rule Instrumentor only.
Updated by Evgeny Novikov over 13 years ago
Don't you like LDV_KERNEL_RULES option? That environment variable allows to specify any directory containing models. The only restriction is that it should contain model-db.xml file in correspondence with default naming scheme. But the rest part of that directory and even model-db.xml can be completely user defined (except they have to have right readable format).
As for me I have used this option in developing 43-1a model to avoid continuous submodule pushing and updating.
Updated by Vadim Mutilin over 13 years ago
I like LDV_KERNEL_RULES very much also :)
Updated by Pavel Shved over 13 years ago
Eugene Novikov wrote:
Don't you like LDV_KERNEL_RULES option? That environment variable allows to specify any directory containing models.
Ok, but can it specify several model-db.xml-s, so that a model is searched in all of them? I bet it can't. While current solution fulfills your needs as those of a developer, the needs of a user easily go beyond testing a specific model. Take Alexey as an example: he has to merge his RCU_1 custom model into model-db.xml at each its update. That's not the best user experience we can provide.
Updated by Vadim Mutilin over 13 years ago
Pavel Shved wrote:
Take Alexey as an example: he has to merge his RCU_1 custom model into model-db.xml at each its update.
Alexey, I completely forgot to ask you: please add your rule about RCU in our rule database!