CAVEconnectome / CAVEclient

This is the python client for accessing REST APIs within the Connectome Annotation Versioning Engine.
https://caveconnectome.github.io/CAVEclient/
MIT License
21 stars 11 forks source link

Split resolution metadata #112

Open ceesem opened 1 year ago

ceesem commented 1 year ago

The current implementation of data frame metadata using the df.attrs semi-functionality in pandas is useful, but it has a bug/decision that produces an exception when doing dataframe concatenations because some of the metadata is kept as a list. This PR changes the table metadata format to split x/y/z into different fields, similar to how it's actually kept and transmitted. This is a mild breaking change for those who use the voxel_resolution field right now (e.g. dash apps will need a one line fix in a few places), but I think it's useful to avoid a fairly cryptic error.