Problem
Collection.save(directory, formats=...) (cellpy/collect/collection.py) only
handles parquet and csv:
else:
raise ValueError(f"unsupported collection format {fmt!r}")
even though SaveOptions.formats reads like it's meant to be extensible, and "a
collection is a product you can save in different formats" is part of the design.
In the app's export menu I serialise xlsx / json myself:
collection.data.to_pandas().to_excel(...) and collection.data.write_json().
Suggestion
Support xlsx and json in Collection.save / SaveOptions.formats (polars has
write_json; xlsx via to_pandas().to_excel or polars.write_excel). Then apps get
multi-format export "for free" as intended.
Found while building cellpy-simple-gui on cellpy 2.1.0.post1. Full write-up with all items: CELLPY_PAINPOINTS.md.
Problem
Collection.save(directory, formats=...)(cellpy/collect/collection.py) onlyhandles
parquetandcsv:even though
SaveOptions.formatsreads like it's meant to be extensible, and "acollection is a product you can save in different formats" is part of the design.
In the app's export menu I serialise
xlsx/jsonmyself:collection.data.to_pandas().to_excel(...)andcollection.data.write_json().Suggestion
Support
xlsxandjsoninCollection.save/SaveOptions.formats(polars haswrite_json; xlsx viato_pandas().to_excelorpolars.write_excel). Then apps getmulti-format export "for free" as intended.
Found while building cellpy-simple-gui on cellpy 2.1.0.post1. Full write-up with all items: CELLPY_PAINPOINTS.md.