_generate_model_file
- _generate_model_file(simulation_config: SimulationConfig, nr_compartments: int, file_name: str) Model[source]
Generate and save a model file for the simulation.
This function generates a model based on the provided simulation configuration and number of compartments. It saves the generated model to a temporary YAML file, sanitizes the file, and then saves it to the specified file name.
- Parameters:
simulation_config (SimulationConfig) – The configuration for the simulation.
nr_compartments (int) – The number of compartments in the model.
file_name (str) – The name of the file to save the sanitized model.
- Returns:
The generated model object, which can be used for further processing or simulation.
- Return type:
Model