Required
project| Type: | salvus.project.project.Project |
| Description: | The project to attach the waveform component to. |
class MisfitComponent(builtins.object):
def __init__(self, project: salvus.project.project.Project): ...| Type: | salvus.project.project.Project |
| Description: | The project to attach the waveform component to. |
def compute_adjoint_source(
self,
simulation_configuration: str | _SimulationConfigurationBase,
misfit_configuration: str | MisfitConfiguration,
events: (
str
| typing.Sequence[str]
| Event
| typing.Sequence[Event]
| EventCollection
),
) -> None: ...| Type: | str | _SimulationConfigurationBase |
| Description: | Name of the simulation configuration for the forward run. |
| Type: | str | MisfitConfiguration |
| Description: | The name of the misfit configuration. |
| Type: | str | typing.Sequence[str] | Event | typing.Sequence[Event] | EventCollection |
| Description: | One or more events. |
def get(
self,
simulation_configuration: str | SimulationConfiguration,
misfit_configuration: str | MisfitConfiguration,
events: (
str
| typing.Sequence[str]
| Event
| typing.Sequence[Event]
| EventCollection
),
skip_writing_adjoint_source: bool | None = False,
) -> dict[str, float]: ...| Type: | str | SimulationConfiguration |
| Description: | Name of the simulation configuration for the forward run. |
| Type: | str | MisfitConfiguration |
| Description: | The name of the misfit configuration. |
| Type: | str | typing.Sequence[str] | Event | typing.Sequence[Event] | EventCollection |
| Description: | One or more events. |
| Type: | bool | None |
| Default value: | False |
| Description: | Optionally skip writing the adjoint source file. |
def get_event_misfit_object(
self,
simulation_configuration: str,
misfit_configuration: str | MisfitConfiguration,
event: Event | str,
) -> EventMisfit: ...| Type: | str |
| Description: | Name of the simulation configuration for the forward run. |
| Type: | str | MisfitConfiguration |
| Description: | Name of the misfit configuration. |
| Type: | Event | str |
| Description: | The event to use. |
def get_gradient_filenames(
self,
simulation_configuration: str | SimulationConfiguration,
misfit_configuration: str | MisfitConfiguration,
event: str | Event,
wavefield_compression: WavefieldCompression,
gradient_parameters: set[str] | None = None,
) -> dict[str, pathlib.Path]: ...| Type: | str | SimulationConfiguration |
| Description: | Simulation configuration for the forward run. |
| Type: | str | MisfitConfiguration |
| Description: | The name of the misfit configuration. |
| Type: | str | Event |
| Description: | The event for which to get the gradient filenames. |
| Type: | WavefieldCompression |
| Description: | Wavefield compression settings. |
| Type: | set[str] | None |
| Default value: | None |
| Description: | Model parameters to compute the gradients for. Must be a subset of the model parameters. If not given, gradients will be computed for all model fields. |
def get_misfit_comparison_table(
self,
reference_data: str,
other_data: builtins.list[str] | None = None,
misfit_configuration: str,
event: str | Event,
shorten_names: bool = False,
) -> pd.DataFrame: ...| Type: | str |
| Description: | The simulation configuration name for the baseline misfit. |
| Type: | builtins.list[str] | None |
| Default value: | None |
| Description: | One or more other simulation configurations whose misfits will be compared against the reference. |
| Type: | str |
| Description: | The misfit configuration. |
| Type: | str | Event |
| Description: | The event to do it for. |
| Type: | bool |
| Default value: | False |
| Description: | If True, the names of all columns will be shortened so they are as short as possible while still being unique. |
def list(self) -> list[str]: ...