jepegit / cellpy

extract and tweak data from electrochemical tests of cells
MIT License
88 stars 30 forks source link

Add basic support for reading parquet for custom instruments #322

Closed morrowrasmus closed 1 week ago

morrowrasmus commented 1 month ago

This PR adds basic support for parquet-files for custom instruments, in addition to the already existing formats .csv, .xls and .xlsx, through the use of the pandas.read_parquet().

Only allows specification of the engine (auto (default), pyarrow or fastparquet), but additional parameters could be added later if needed.

Have not included any additional requirements, as the relevant engine is imported from within pandas, but if file_format is set to parquet in the instrument YAML-file without the user having installed either pyarrow or fastparquet, it will fail.