Skip to content

Commit

Permalink
Update stingray/base.py
Browse files Browse the repository at this point in the history
  • Loading branch information
matteobachetti authored Sep 19, 2023
1 parent 7ea3879 commit 25d6774
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stingray/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,7 @@ def write(self, filename: str, fmt: str = None) -> None:
fmt = "ascii.ecsv"

try:
Table({"a": np.longdouble(3)}).write(f".bu.{fmt}", overwrite=True)
Table({"a": [np.longdouble(3)]}).write(f".bu.{fmt}", overwrite=True)
CAN_SAVE_LONGD = True
except ValueError as e:
if not "float128" in str(e): # pragma: no cover
Expand Down

0 comments on commit 25d6774

Please sign in to comment.