io.loader
Unify the GDX and .mif backends behind one loader with candidate resolution.
RemindLoader
¶
Load IAM output symbols from a GDX file or .mif, resolving name candidates.
Source code in src/iampypsa/io/loader.py
__init__(source, backend=None)
¶
Bind to a source file; detect the backend from the suffix if unset.
Source code in src/iampypsa/io/loader.py
detect_backend(source)
staticmethod
¶
Infer the backend (gdx/mif) from a source path's suffix.
Source code in src/iampypsa/io/loader.py
list_symbols()
¶
List the symbols/variables available in the bound source.
load_scalar(symbol)
¶
Load a scalar/string symbol (e.g. model version, run name).
Source code in src/iampypsa/io/loader.py
load_symbol(symbol, rename_columns=None)
¶
Resolve a symbol reference (name or candidates), then load it.
Source code in src/iampypsa/io/loader.py
resolve_symbol(symbol)
¶
Pick the first candidate name actually present in the source; raise if none.