Required
sites| Type: | dict[str, TaskChainSiteConfig] |
| Description: | The site configuration dictionary. |
def create_result_folders_on_all_sites(
sites: dict[str, TaskChainSiteConfig],
) -> tuple[str, dict[str, dict[str, pathlib.Path]]]: ...| Type: | dict[str, TaskChainSiteConfig] |
| Description: | The site configuration dictionary. |
tuple[str, dict[str, dict[str, pathlib.Path]]]def extract_from_project(
project: Project,
simulation_configuration: str,
misfit_configuration: str | None,
sites: dict[str, TaskChainSiteConfig],
wavefield_compression: WavefieldCompression | None,
timer: Timer | None = None,
) -> ProjectData: ...| Type: | Project |
| Description: | The project. |
| Type: | str |
| Description: | The simulation configuration name. |
| Type: | str | None |
| Description: | The misfit configuration name. |
| Type: | dict[str, TaskChainSiteConfig] |
| Description: | The site configuration dictionary. |
| Type: | WavefieldCompression | None |
| Description: | If given, the simulation template will include checkpoints. |
| Type: | Timer | None |
| Default value: | None |
| Description: | Execution timer. |
ProjectDatadef extract_simulation_template(
sites: dict[str, TaskChainSiteConfig],
project: Project,
simulation_configuration: str,
wavefield_compression: WavefieldCompression | None,
) -> Waveform: ...| Type: | dict[str, TaskChainSiteConfig] |
| Description: | Sites this will run on. Used to extract information about GPUs and memory per rank. |
| Type: | Project |
| Description: | The project. |
| Type: | str |
| Description: | Name of the simulation configuration. |
| Type: | WavefieldCompression | None |
| Description: | Wavefield compression. Will store checkpoints if given. |
Waveformdef generate_adjoint_input_file_from_forward_input_files(
gradient_parameterization: str, w_forward: Waveform
) -> Waveform: ...| Type: | str |
| Description: | The gradient parameterization fields. |
| Type: | Waveform |
| Description: | The forward simulation objects. |
Waveformdef get_memory_per_rank(
sites: dict[str, TaskChainSiteConfig],
) -> float | None: ...| Type: | dict[str, TaskChainSiteConfig] |
| Description: | the sites. |
float | Nonedef get_number_of_threads_per_rank(
sites: dict[str, TaskChainSiteConfig],
) -> int: ...| Type: | dict[str, TaskChainSiteConfig] |
| Description: | the sites. |
intdef get_use_cuda_gpus(sites: dict[str, TaskChainSiteConfig]) -> bool: ...| Type: | dict[str, TaskChainSiteConfig] |
| Description: | The sites. |
booldef parse_per_node_runner_timings(
tcc: TaskChainController,
) -> dict[str, dict[str, float]]: ...| Type: | TaskChainController |
| Description: | The task chain controller. |
dict[str, dict[str, float]]def perform_sanity_checks(sites: dict[str, TaskChainSiteConfig]) -> None: ...| Type: | dict[str, TaskChainSiteConfig] |
| Description: | The sites. |
class ProjectData(builtins.object):
def __init__(
self,
simulation_configuration: SimulationConfiguration,
simulation_template: Waveform,
mesh_filename: pathlib.Path | None,
project_path: pathlib.Path,
misfit_configuration: MisfitConfiguration | None = None,
processing_configuration: ProcessingConfiguration | None = None,
data_selection_configuration: DataSelectionConfiguration | None = None,
data_proxy_filename: pathlib.Path | None = None,
data_name: str | None = None,
) -> None: ...| Type: | SimulationConfiguration |
| Description: | The simulation configuration object. |
| Type: | Waveform |
| Description: | The simulation template. |
| Type: | pathlib.Path | None |
| Description: | Absolute path to the mesh if it should be stored in the shared memory context manager. If None (in the case of chunked meshes) it will not be stored in shared memory. |
| Type: | pathlib.Path |
| Description: | Path to the project. |
| Type: | MisfitConfiguration | None |
| Default value: | None |
| Description: | The misfit configuration. |
| Type: | ProcessingConfiguration | None |
| Default value: | None |
| Description: | The processing configuration. |
| Type: | DataSelectionConfiguration | None |
| Default value: | None |
| Description: | The data configuration, if any. |
| Type: | pathlib.Path | None |
| Default value: | None |
| Description: | Path to the data proxy, if it exists. |
| Type: | str | None |
| Default value: | None |
| Description: | Unprocessed data name, if there is no data proxy. |