-
Notifications
You must be signed in to change notification settings - Fork 3
ENH: Improve type annotations and checking #176
Copy link
Copy link
Open
Labels
Description
Meta issue to collect ideas to improve type annotations and type checking:
-
Use pandera to get more informative type-hints for pandas dataframes
We use pandas dataframe internally (e.g.,
variable_info). It is very hard to check that a column exists or what dtype it has. We should discuss whether we should improve the type annotations for these objects, or replace the dataframes entirely by objects that are easier to type check and give a more descriptive structure. -
Use pydantic / beartype (or other tools) to validate user-input.
We currently do a very basic validation of user input in each
Model/Regimeclass. This simply duplicates behavior of better existing validation tools.
Reactions are currently unavailable