openneuropet / PET2BIDS

PET2BIDS helps you convert your PET data into BIDS! raw PET scanner files (e.g. ecat, dicom) and additional side files like .e.g excel sheets -- paper @JOSS https://doi.org/10.21105/joss.06067
https://pet2bids.readthedocs.io
MIT License
26 stars 20 forks source link

[ENH] Convert Boolean like Values to Python Type Bools #225

Closed bendhouseart closed 1 year ago

bendhouseart commented 1 year ago

Pandas seems to consider booleans to be 1 and 0, this update uses the schema to check for 1 and 0 and if that entity should be a boolean converts it to a python True or False which when written out as a json should persist as a bool type there.