Skip to content

Commit df36020

Browse files
committed
update MDSplus models config w.r.t IMAS-Core/5.6.0 change
1 parent fc77ae5 commit df36020

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

imas/backends/imas_core/db_entry_al.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ def _setup_backend(cls, backend: str, mode: int, factory: IDSFactory) -> None:
120120
# Building the MDS+ models is required when creating a new Data Entry
121121
ids_path = mdsplus_model_dir(factory)
122122
if ids_path:
123-
os.environ["ids_path"] = ids_path
123+
os.environ["MDSPLUS_MODELS_PATH"] = ids_path
124124

125125
elif backend == "uda":
126126
# Set IDSDEF_PATH to point the UDA backend to the selected DD version

imas/backends/imas_core/mdsplus_model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ def create_mdsplus_model(cache_dir_path: Path) -> None:
322322
env={
323323
"PATH": os.environ.get("PATH", ""),
324324
"LD_LIBRARY_PATH": os.environ.get("LD_LIBRARY_PATH", ""),
325-
"ids_path": str(cache_dir_path),
325+
"MDSPLUS_MODELS_PATH": str(cache_dir_path),
326326
},
327327
)
328328
# Touch a file to show that we have finished the model

0 commit comments

Comments
 (0)