STAN module
OpenSEFA.STANModule — Module
Methods to parse STAN model data and calculations output.
STAN is available at https://www.stan2web.net/
OpenSEFA.STANModule.IGNORED_MODELS — Constant
These models are work-in-progress, hence aren't tested yet.
OpenSEFA.STANModule.MODELS_PATH — Constant
Path for each available model.
OpenSEFA.STANModule.section_header — Constant
Section headers in English.
OpenSEFA.STANModule.section_header_DE — Constant
Section headers in German.
OpenSEFA.STANModule.ParsedVariableLine — Type
Helper struct to hold parsed variable line data before storage.
OpenSEFA.STANModule.STANCalculationMethod — Type
Calculation algorithm in STAN used to solve the problem.
OpenSEFA.STANModule.STANData — Type
Struct which holds data in CSV format produced by STAN software.
OpenSEFA.STANModule.STANInfos — Type
Struct which holds solving data from STAN
OpenSEFA.STANModule.STANResult — Type
Struct which holds result data from STAN
OpenSEFA.STANModule.STANTrace — Type
Struct which holds data from reconciliation optimization produced by STAN.
Base.parse — Method
Parse solving data from STAN
OpenSEFA.STANModule.all_models — Method
Return the directory path of all available STAN models.
OpenSEFA.STANModule.contains_section_header — Method
Check if a line contains a section header in either English or German.
OpenSEFA.STANModule.matches_section_header — Method
Check if a line matches a section header in either English or German.
OpenSEFA.STANModule.parse_equation! — Method
Helper to parse an equation from STAN given as a string.
OpenSEFA.STANModule.parse_kelly_trace — Method
Parse Kelly's STAN trace.
OpenSEFA.STANModule.parse_variable_line — Method
Parse a variable line in STAN format: "Value | Key | Info"
Returns a ParsedVariableLine containing the parsed components. The parsing handles three formats:
- "?" for unmeasured variables
- "value±uncertainty" for measured variables
- "value" for fixed variables
OpenSEFA.STANModule.safe_load_stan_data — Method
Load the STAN data from .csv files located in path. Such files are assumed to be under the path/data subfolder.
OpenSEFA.STANModule.strip_trailing_comma — Method
Remove trailing comma from a string if present.
OpenSEFA.STANModule.write_json — Method
Serialize the data into JSON format.