ersilia-os / ersilia

The Ersilia Model Hub, a repository of AI/ML models for infectious and neglected disease research.
https://ersilia.io
GNU General Public License v3.0
203 stars 131 forks source link

📑 Feature Request: Action to skip elimination of conda environment at fetch time #513

Closed miquelduranfrigola closed 1 year ago

miquelduranfrigola commented 1 year ago

Is your feature request related to a problem? Please describe.

When developing models, trial and error is often necessary. In particular, the ersilia -v fetch command is typically called multiple times.

A time-consuming step is installing dependencies for the model. It is non-sense to delete and reinstall dependencies every time we fetch a model.

Describe the solution you'd like.

A flag to avoid reinstalling dependencies. A possibility would be ersilia -v fetch $MODEL_ID --skip-install

Describe alternatives you've considered

A perhaps better alternative would be to consider the fetch command as a pipeline, where every successful step is stored. When re-running fetch, there should be a possibility to re-start from scratch of continue from the last successful step.

Additional context.

No response

miquelduranfrigola commented 1 year ago

I have incorporated this feature. Now it is possible to do:

ersilia fetch MODEL_ID --reuse

This will reuse the existing conda environment named MODEL_ID.

I hope this is useful for debugging!