Skip to content

Commit b21c39e

Browse files
authored
conditionally set MAX_ARRAY_BYTES if not already set
1 parent abb695a commit b21c39e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/genie_python/genie.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,10 @@
1414

1515
from genie_python.genie_api_setup import __api as _genie_api
1616

17-
os.environ["EPICS_CA_MAX_ARRAY_BYTES"] = "20000000"
17+
EPICS_CA_MAX_ARRAY_BYTES = "EPICS_CA_MAX_ARRAY_BYTES"
18+
if EPICS_CA_MAX_ARRAY_BYTES not in os.environ:
19+
os.environ[EPICS_CA_MAX_ARRAY_BYTES] = "20000000"
20+
1821
os.environ["FROM_IBEX"] = str(False)
1922

2023
# for user import this functionality so they can do g.adv and g.sim

0 commit comments

Comments
 (0)