flo-schu / pymob

Python model building platform
MIT License
0 stars 0 forks source link

Make imports of numpyro, jax, ... optional #29

Closed flo-schu closed 5 months ago

flo-schu commented 6 months ago

This issue has been solved for the moment. However, it may be better to import the modules when the inferer are set up, because here the most informative error messages can be provided. In addition, it will speed up pymob import. The downside is that the modules are not accessible via import.

I could also fix this with a silent try except block or something like this in the init PLUS an import attempt in the set_inferer method