Skip to content

Commit ca20b16

Browse files
sys.maxsize is used to fully print out exported data in python script (#215)
1 parent 31032b5 commit ca20b16

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎ratapi/project.py‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import copy
55
import functools
66
import json
7+
import sys
78
import warnings
89
from collections.abc import Callable
910
from enum import Enum
@@ -879,7 +880,8 @@ def write_item(item):
879880
if not np.any(item.data): # if array is empty, e.g. in simulation data
880881
item_str += "'data': empty([0, 3]), "
881882
else:
882-
item_str += f"'data': {repr(item.data)}, "
883+
with np.printoptions(threshold=sys.maxsize):
884+
item_str += f"'data': {repr(item.data)}, "
883885
if len(item.data_range) != 0:
884886
item_str += f"'data_range': {item.data_range}, "
885887
if len(item.simulation_range) != 0:

0 commit comments

Comments
 (0)