tidy3d.components.base_sim.data.sim_data.AbstractSimulationData#
- class AbstractSimulationData[source]#
- Bases: - Tidy3dBaseModel,- ABC- Stores data from a collection of - AbstractMonitorobjects in a- AbstractSimulation.- Parameters:
- attrs (dict = {}) – Dictionary storing arbitrary metadata for a Tidy3D object. This dictionary can be freely used by the user for storing data without affecting the operation of Tidy3D as it is not used internally. Note that, unlike regular Tidy3D fields, - attrsare mutable. For example, the following is allowed for setting an- attr- obj.attrs['foo'] = bar. Also note that Tidy3D` will raise a- TypeErrorif- attrscontain objects that can not be serialized. One can check if- attrsare serializable by calling- obj.json().
- simulation (AbstractSimulation) – Original - AbstractSimulationassociated with the data.
- data (Tuple[AbstractMonitorData, ...]) – List of - AbstractMonitorDatainstances associated with the monitors of the original- AbstractSimulation.
- log (Optional[str] = None) – A string containing the log information from the simulation run. 
 
 - Attributes - Dictionary mapping monitor name to its associated - AbstractMonitorData.- Methods - data_monitors_match_sim(val, values)- Ensure each - AbstractMonitorDatain- .datacorresponds to a monitor in- .simulation.- validate_no_ambiguity(val, values)- Ensure all - AbstractMonitorDataentries in- .datacorrespond to different monitors in- .simulation.- Inherited Common Usage - simulation#
 - data#
 - log#
 - property monitor_data#
- Dictionary mapping monitor name to its associated - AbstractMonitorData.
 - classmethod data_monitors_match_sim(val, values)[source]#
- Ensure each - AbstractMonitorDatain- .datacorresponds to a monitor in- .simulation.
 - classmethod validate_no_ambiguity(val, values)[source]#
- Ensure all - AbstractMonitorDataentries in- .datacorrespond to different monitors in- .simulation.
 - __hash__()#
- Hash method.