You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We could make matplotlib (and any other future plotting deps) optional, pandas for instance does this. We could also consider finer-grained dependency groups like they do.
So far we've done some prototyping with the following
attrs
cattrs
boltons
lark
mypy
Jinja2
I think at minimum, per the current design sketch, the core would need
c/attrs
Jinja2
Along with numpy and pandas which are existing requirements.
Lark could be used to parse input files but still need to see how performance compares to hand-parsing.
Boltons is a small dependency-free set of utilities I've found generally useful but by no means necessary.
MyPy (or another type-checker) would be a developer dependency. Alternatives could be
beartype
pyright
I'm intrigued by beartype since it seems friendly to incremental adoption, and runtime checking lets us verify type hints when we apply them to existing flopy modules.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Just some thoughts on dependencies for flopy4.
We could make matplotlib (and any other future plotting deps) optional, pandas for instance does this. We could also consider finer-grained dependency groups like they do.
So far we've done some prototyping with the following
I think at minimum, per the current design sketch, the core would need
Along with
numpy
andpandas
which are existing requirements.Lark could be used to parse input files but still need to see how performance compares to hand-parsing.
Boltons is a small dependency-free set of utilities I've found generally useful but by no means necessary.
MyPy (or another type-checker) would be a developer dependency. Alternatives could be
I'm intrigued by beartype since it seems friendly to incremental adoption, and runtime checking lets us verify type hints when we apply them to existing flopy modules.
Beta Was this translation helpful? Give feedback.
All reactions