MODFLOW-USGS / modflow-devtools

Python tools for MODFLOW 6 development
https://modflow-devtools.readthedocs.io/en/latest/
Other
2 stars 5 forks source link

feat(fixtures): add use_pandas pytest fixture and --pandas CLI arg #112

Closed wpbonelli closed 1 year ago

wpbonelli commented 1 year ago

Tabular data is commonly represented in Python with numpy recarrays and pandas dataframes. FloPy recently added pandas as a core dependency. Work is underway to use pandas internally where expedient and support pandas dataframes across user-facing APIs where numpy recarrays were previously required.

Introduce a --pandas (short -P) pytest CLI option accepting values: yes, no, random. This controls the value of a boolean use_pandas fixture. Motivations:

Other miscellany: