Skip to content

Commit

Permalink
comments
Browse files Browse the repository at this point in the history
  • Loading branch information
fsoubelet committed Dec 19, 2024
1 parent e7763e0 commit 5ca050a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tfs/writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ def _dtype_to_formatter_string(type_: type, colsize: int) -> str:
"""
type_id = _dtype_to_python_string_formatter(type_) # for Python: 'd' or 'g' or 's' etc
if pdtypes.is_float_dtype(type_) or pdtypes.is_complex_dtype(type_):
return f"{colsize}.{colsize - len('-0.e-000')}{type_id}"
return f"{colsize}.{colsize - len('-0.e-000')}{type_id}" # make sure we don't round and lose info
return f"{colsize}{type_id}"


Expand Down

0 comments on commit 5ca050a

Please sign in to comment.