salvus.flow.collections.wavefield_compression
salvus.flow.collections.wavefield_compression salvus flow collections wavefield_compression Wavefield compression settings.
Classes
WavefieldCompression
WavefieldCompressionclass WavefieldCompression(
salvus.flow.utils.serialization_helpers.SerializationMixin
):
def __init__(
self, forward_wavefield_sampling_interval: salvus._core.types.int_
): ...Keeps track of the initial arguments passed to an objects and can later on serialize them to JSON document.
It will only consider whatever is passed in the init.
Configure wavefield compression settings.
Parameters
forward_wavefield_sampling_intervalsalvus._core.types.int_ — Determines the sampling interval of the forward wavefield during the gradient computation. A value of 1 will use every temporal sample and will result in consistent discrete gradients, but also the largest amount of checkpoints and thus the largest amount of memory and disk space. The optimal value is application dependent.
Methods
from_json()
from_json()def from_json(d: builtins.dict) -> Any: ...Recreate the object from a dictionary serialization of its initialization parameters.
Parameters
dbuiltins.dict — Dictionary containing its init parameters and a few other things.
Returns Any
to_json()
to_json()def to_json(
self,
external_file_hash: types = None,
timer: types = None,
log_to_logger: bool = False,
comm: types = None,
) -> builtins.dict: ...Serialize the object to a dictionary that can be written to JSON.
Parameters
external_file_hashtypes — Hash of any external files associated with this object. Can be passed here in which case it will be stored in a centralized location in the JSON file.timertypes — Execution timer.log_to_loggerbool — Log timings to the logger.commtypes — MPI communicator, if any.
Returns builtins.dict
Used in tutorials
- Continental Scale FWI Tutorial - Part 3: Data selection and misfit definition
- Continental Scale FWI Tutorial - Part 4: Iterative inversion
- Full-Waveform Inversion
- Full-Waveform Inversion
- Full-Waveform Inversion
- Mapping between simulation and inversion space
- My First Salvus Inversion
- Seismological Gradients in Salvus*Project*