From c9b9b2216bd90325a609ff0cf8a77a242c2eb85c Mon Sep 17 00:00:00 2001 From: Mike Sullivan Date: Mon, 28 Sep 2026 12:56:25 +0100 Subject: [PATCH] sys.maxsize is used to fully print out exported data in python script --- ratapi/project.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ratapi/project.py b/ratapi/project.py index b8ca49f2..ed1dc175 100644 --- a/ratapi/project.py +++ b/ratapi/project.py @@ -4,6 +4,7 @@ import copy import functools import json +import sys import warnings from collections.abc import Callable from enum import Enum @@ -879,7 +880,8 @@ def write_item(item): if not np.any(item.data): # if array is empty, e.g. in simulation data item_str += "'data': empty([0, 3]), " else: - item_str += f"'data': {repr(item.data)}, " + with np.printoptions(threshold=sys.maxsize): + item_str += f"'data': {repr(item.data)}, " if len(item.data_range) != 0: item_str += f"'data_range': {item.data_range}, " if len(item.simulation_range) != 0: