Project configuration & locations
inputs.toml parsing, ProjectLocations, and location-path helpers.
ModelManager.ProjectLocations — Type
ProjectLocationsA struct that contains information about the locations of input files in the project.
Created by reading the inputs.toml file in the data directory via parseProjectInputsConfigurationFile.
Fields
all::NTuple{L,Symbol}: All registered location names (alphabetically sorted).required::NTuple{M,Symbol}: Locations whose input folder is mandatory.varied::NTuple{N,Symbol}: Locations that support parameter variations.
ModelManager.folderIsVaried — Method
folderIsVaried(location::Symbol, folder::String)Return true if folder in location can have parameter variations applied.
ModelManager.locationFolder — Method
locationFolder(location::Union{String,Symbol})Return the name of the folder for location within data/inputs/. Defaults to locationTableName.
ModelManager.locationIDName — Method
locationIDName(location)Return the ID column name for location (e.g. "config_id").
ModelManager.locationIDNames — Method
locationIDNames()Return an iterator over the ID column names for all locations.
ModelManager.locationPath — Function
locationPath(location::Symbol[, folder])Return the path to location's input directory. If folder is given, join it.
ModelManager.locationTableName — Method
locationTableName(location)Return the database table name for location (e.g. "configs").
ModelManager.locationVariationIDName — Method
locationVariationIDName(location)Return the variation ID column name for location (e.g. "config_variation_id").
ModelManager.locationVariationIDNames — Method
locationVariationIDNames()Return an iterator over the variation ID column names for all varied locations.
ModelManager.locationVariationsDBName — Method
locationVariationsDBName(location::Union{String,Symbol})Return the filename of the per-folder variations SQLite database for location.
ModelManager.locationVariationsFolder — Method
locationVariationsFolder(location)Return the name of the variations folder for location.
ModelManager.locationVariationsTableName — Method
locationVariationsTableName(location)Return the name of the variations table for location (e.g. "config_variations").
ModelManager.parseProjectInputsConfigurationFile — Method
parseProjectInputsConfigurationFile()Parse inputs.toml and update mm_globals with the resulting ProjectLocations and inputs_dict.
Returns true on success, false if the file is missing or malformed.
ModelManager.pathToInputsConfig — Method
pathToInputsConfig()Return the path to inputs.toml.