larray-project / larray

N-dimensional labelled arrays in Python
https://larray.readthedocs.io/
GNU General Public License v3.0
8 stars 6 forks source link

Implement ability to lower precision if there is not enough width when displaying arrays as strings #1012

Open gdementen opened 1 year ago

gdementen commented 1 year ago

IMO this should be the default. Unsure what the exact behavior or the API to customize it should be (see #1010)

New option for min_precision? which would mean "if a value cannot be shown with at least that precision, do not display it?

In #1010 for example, most users would much rather see the numbers with less precision than not see them at all or not see them all