salvus.project.project_configuration
salvus.project.project_configuration salvus project project_configuration Project configurations.
Classes
ProjectConfig
ProjectConfigclass 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
filenamepathlib.Path — Where to store the configurationprojectProject | None — The Salvus project to store the configuration for.
Attributes
mesh_file_mode str
mesh_file_mode strGet the mesh file mode.
model_precision type[np.number] | str
model_precision type[np.number] | strGet the model precision.
Methods
init_with_initial_values()
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
filenamepathlib.Path — Where to store the file.projectProject | None — The Salvus project to store the configuration for.initial_valuesdict — Dictionary of initial values.
Returns ProjectConfig