Skip to content

Commit

Permalink
more debug info
Browse files Browse the repository at this point in the history
  • Loading branch information
dlakaplan committed Dec 2, 2024
1 parent 6493400 commit 22484ce
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/pint/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,12 @@ def check_longdouble_precision() -> bool:
Returns True if long doubles have enough precision to use PINT
for sub-microsecond timing on this machine.
"""
log.debug(f"os {os.uname()}")
log.debug(f"processor {platform.processor()}")
log.debug(f"Python {sys.version}")
log.debug(f"eps: {np.finfo(np.longdouble).eps}")
log.debug(f"longdouble eps: {np.finfo(np.longdouble).eps}")
log.debug(f"Info: {info_string()}")
return np.finfo(np.longdouble).eps < 2e-19


Expand Down

0 comments on commit 22484ce

Please sign in to comment.