elePyant icon indicating copy to clipboard operation
elePyant copied to clipboard

Rounding options

Open zmoon opened this issue 4 years ago • 1 comments

This adds a new rounding method that aims to preserve significant figures ("sig figs") in base 10 (as opposed to decimal places), and a new function round_dataarray that can use either rounding method.

I also implemented the rounding in binary (https://github.com/fraserwg/elePyant/issues/1) following https://github.com/fraserwg/elePyant/issues/1#issuecomment-658438978, but wanted to see if/how you wanted to handle options in the compress_ functions first before I include that. My thought was that they could call round_dataarray, but arguments would need to be changed.

zmoon avatar Aug 07 '20 01:08 zmoon

@fraserwg what do you think about this?

zmoon avatar Mar 22 '21 17:03 zmoon