scverse / mudata

Multimodal Data (.h5mu) implementation for Python
https://mudata.rtfd.io
BSD 3-Clause "New" or "Revised" License
73 stars 17 forks source link

Fix writing to .h5mu after using `mudata.concat()` #74

Closed IsaacUtah1379 closed 1 month ago

IsaacUtah1379 commented 1 month ago

Using mudata.concat() converts the keys in ModDict from generic Python strings to Numpy strings, causing an error to be thrown when using MuData.write(). The purpose of this pull request is to prevent this error by converting the keys in the ModDict of the returned MuData object back to generic Python strings, which can be written to .h5mu without issue.

Closes #73.