salvus.project.configuration.event_configuration
Classes
EventConfiguration
EventConfigurationclass EventConfiguration(
salvus.flow.utils.serialization_helpers.SerializationMixin
):
def __init__(
self,
wavelet: Union[
salvus.flow.simple_config.stf._Base,
Sequence[salvus.flow.simple_config.stf._Base],
Dict[
str,
Union[
salvus.flow.simple_config.stf._Base,
Sequence[salvus.flow.simple_config.stf._Base],
],
],
],
waveform_simulation_configuration: salvus.project.configuration.waveform_simulation_configuration.WaveformSimulationConfiguration,
):
...Event specific configuration.
Parameters
waveletUnion[salvus.flow.simple_config.stf._Base, Sequence[salvus.flow.simple_config.stf._Base], Dict[str, Union[salvus.flow.simple_config.stf._Base, Sequence[salvus.flow.simple_config.stf._Base]]]] — Source wavelet.waveform_simulation_configurationsalvus.project.configuration.waveform_simulation_configuration.WaveformSimulationConfiguration — More specialized configuration of the waveform simulation by being able to directly specify a subset of the actual simulation input files.
Methods
from_json()
from_json()def from_json(d: Dict) -> Any:
...Recreate the object from a dictionary serialization of its initialization parameters.
Parameters
dDict — Dictionary containing its init parameters and a few other things.
Returns Any
to_json()
to_json()def to_json(self, external_file_hash: Optional[str] = None) -> Dict:
...Serialize the object to dictionary that can be written to JSON.
Parameters
external_file_hashOptional[str] — 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.
Returns Dict