linnarsson-lab / loompy

Python implementation of the Loom file format - http://loompy.org
BSD 2-Clause "Simplified" License
139 stars 37 forks source link

Global attributes of type float64? #9

Closed pl-ki closed 6 years ago

pl-ki commented 6 years ago

Seems that global attributes can only be string. Is this on purpose? I think we could allow also float64 like row/col attrs.

slinnarsson commented 6 years ago

Yes, sure.

-- Sten Linnarsson, PhD Professor of Molecular Systems Biology Karolinska Institutet Unit of Molecular Neurobiology Department of Medical Biochemistry and Biophysics Scheeles väg 1, 171 77 Stockholm, Sweden +46 8 52 48 75 77 (office) +46 70 399 32 06 (mobile)

On 1 Nov 2017, at 14:12, pl-ki notifications@github.com wrote:

Seems that global attributes can only be string. Is this on purpose? I think we could allow also float64 like row/col attrs.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

pl-ki commented 6 years ago

Only 'str' attributes are utf8-encoded at storing, others unencoded. All 'bytes' attributes are utf8-decoded when retrieved.