imas.backends.imas_core.mdsplus_model

Module for generating and working with MDSplus models.

Functions

create_mdsplus_model(cache_dir_path)

Use jtraverser to compile a valid MDS model file.

create_model_ids_xml(cache_dir_path, fname, ...)

Use Saxon/C to compile an ids.xml suitable for creating an MDSplus model.

get_mdsplus_model_var()

Return the environemnt variable name used by IMAS-Core to locate models:

jTraverser_jar()

Search a few common locations and CLASSPATH for jTraverser.jar which is provided by MDSPlus.

mdsplus_model_dir(factory)

when given a version number this looks for the DD definition of that version in the internal cache.

model_exists(path)

Given a path to an IDS model definition check if all components are there

safe_replace(src, dst)

Replace a folder from src to dst, overwriting dst if it is empty.

transform_with_xslt(xslt_processor, source, ...)

wait_for_model(cache_dir_path)

Wait MDSPLUS_MODEL_TIMEOUT seconds until model appears in directory


Last update: 2026-01-28