Mondaic

salvus.project.project_configuration

salvus.project.project_configuration salvus project project_configuration

Project configurations.

Classes

ProjectConfig

class ProjectConfig(builtins.object):
    def __init__(self, filename: pathlib.Path, project: Project | None): ...

General project configuration.

Right now this is pretty simple but might be expanded in the future.

Parameters
  • filename pathlib.Path — Where to store the configuration
  • project Project | None — The Salvus project to store the configuration for.
Attributes
mesh_file_mode str

Get the mesh file mode.

model_precision type[np.number] | str

Get the model precision.

Methods
init_with_initial_values()
def init_with_initial_values(
    filename: pathlib.Path, project: Project | None, initial_values: dict
) -> ProjectConfig: ...

Init a project configuration with a set of initial values.

Parameters
  • filename pathlib.Path — Where to store the file.
  • project Project | None — The Salvus project to store the configuration for.
  • initial_values dict — Dictionary of initial values.
Returns ProjectConfig