How to change datatype of raw object or epochs

I want to change data type of epoch object from float64 to float32 or float16 to save memory space. How can i do it?

you should rather consider to decimate your data. It would be much easier.

2 Likes

hi, @agramfort is decimating and changing data type are same thing? I think No. I think decimate is more closer to subsampling but in data type changes, the data is not subsampled

yes it’s different but both reduce memory footprint. Changing dtype will break things as you could notice

Alex

2 Likes