structure opened this issue on Jun 27, 2019 ยท 94 posts
adp001 posted Sat, 16 May 2020 at 9:03 AM
Something useful when dealing with Numpy:
try:
# Try to make Numpy show numbers in this format:
float_formatter = "{:.4f}".format
NP.set_printoptions(formatter={'float_kind': float_formatter})
except TypeError as err:
# Numpy to old. But "precision" should work.
NP.set_printoptions(precision=4)