Mondaic
This API reference is not for the latest stable Salvus version.

salvus.flow.simple_config.source

Sources in various reference systems and dimensions.

Functions

from_dictionary()

def from_dictionary(d: Dict) -> salvus.flow.simple_config.source._BaseSource:
    ...

Create a source object from its dictionary representation.

Please note that this does not necessarily result in exactly the same object as some object do some transformations (e.g. the seismology sources). If you need to round-trip to disc with the exact same objects, please use the .to_json() and .from_json() methods.

Parameters
  • d Dict — Dictionary.
Returns salvus.flow.simple_config.source._BaseSource

Submodules