exa.core.database_wrapper.batch_save_observations#
- batch_save_observations(observations, storage=None)#
Save a list of observations in a batch.
- Parameters:
observations (Sequence[ObservationDefinition]) – A list of local observations to be saved.
storage (StorageInterface | None) – If given, overrides the default (ambient) storage backend.
- Returns:
The ObservationData objects that were successfully saved into the database. If some observations failed to save, they are omitted here (and logged as a warning by the storage backend); callers needing an all-or-nothing guarantee must check the count.
- Return type: