salvus.project.components.event_component
salvus.project.components.event_component salvus project components event_component The event component.
Classes
EventComponent
EventComponentclass EventComponent(builtins.object):
def __init__(self, project: Project, path: pathlib.Path): ...Project subclass handling all things related to the events.
projectProject — The project for the component.pathpathlib.Path — The event path in the project.
add()
add()def add(
self,
e: Event | EventCollection | EventBlockCollection | str | pathlib.Path,
check_consistency_with_domain: bool = True,
) -> None: ...Adds an event or event collection object to the project.
Might not be supported for all event backends and not every backend can add all types of event representations.
eEvent | EventCollection | EventBlockCollection | str | pathlib.Path — Event, EventCollection, or an event block representation to be added.check_consistency_with_domainbool — Ensure that the entity is compatible with the simulation domain.
delete()
delete()def delete(self, event_name: str) -> None: ...Delete an event.
Might not be supported for all backends.
Fully delete all data and what not from the chosen event. Be careful as there is no other prompt and calling this function will irrevocably delete all data for the chosen event.
event_namestr — Name of the event to be deleted.
exists()
exists()def exists(self, event_name: str) -> bool: ...Determine if the specified event exists within the project.
event_namestr — The name of the event.
True or False.get()
get()def get(self, event_name: str) -> Event: ...Get an event.
event_namestr — Name of the event.
get_all()
get_all()def get_all(self) -> EventCollection: ...Get all events.
get_many()
get_many()def get_many(
self, event_names: typing.Sequence[str]
) -> builtins.list[Event]: ...Get many events at once.
Prefer this over calling get() in a loop - depending on the backend
a single event lookup can be as expensive as retrieving the whole
batch.
event_namestyping.Sequence[str] — Names of the events, in the desired order.
list()
list()def list(self) -> list[str]: ...Get a list of all events.
update()
update()def update(self, e: Event) -> None: ...Special function updating a single event.
This is different deleting and re-adding an event in that all associated data will be retained. Please be aware of of the consequences and that it is not always advisable to change existing data in a project.
eEvent — Event to be updated.
Used in tutorials
- 2-D Global-scale simulations w/ heterogeneous models
- 3D-to-2D Conversion
- Acoustic simulations in isotropic and anisotropic media
- Conical Pitting
- Constructing the Starting Model
- Continental Scale FWI - Part 2: Forward simulations
- Continental Scale FWI Tutorial - Part 1: Project Setup & Data Acquisition
- Continental Scale FWI Tutorial - Part 3: Data selection and misfit definition
- Continental-scale Simulations
- Creating and plotting custom gathers from Salvus' receiver outputs
- Equivalence of Filtering STFs and Filtering Synthetics
- Full-Waveform Inversion
- Full-Waveform Inversion
- Full-Waveform Inversion
- Full-Waveform Inversion