pyPESTO icon indicating copy to clipboard operation
pyPESTO copied to clipboard

Importing pypesto.sample imports tons of packages

Open dweindl opened this issue 4 years ago • 2 comments

... do we really want/need that?

https://github.com/ICB-DCM/pyPESTO/blob/a4ce1d219774b265b9825eca827e7e18d57f37ef/pypesto/sample/init.py#L9-L18

(with all their dependencies)

dweindl avatar Mar 29 '22 15:03 dweindl

we could write something like decorators above usages of certain samplers? If that sounds about right then I would do it.

PaulJonasJost avatar Apr 12 '22 07:04 PaulJonasJost

Not sure I get what you mean. I'd just not import all samplers here, as in most cases, users will use only one of those.

dweindl avatar Apr 19 '22 09:04 dweindl