tidy3d.components.data.TimeData#

class tidy3d.components.data.TimeData#

Stores time-domain data using a t attribute for time in seconds.

Parameters
  • values (Union[Array, Array]) – Values of the raw data being stored.

  • data_attrs (Optional[Mapping[str, str]] = None) – Dictionary storing extra attributes associated with the monitor data.

  • t (Array) – [units = sec]. Array of time values to use as coordintes.

Show JSON schema
{
   "title": "TimeData",
   "description": "Stores time-domain data using a ``t`` attribute for time in seconds.\n\nParameters\n----------\nvalues : Union[Array, Array]\n    Values of the raw data being stored.\ndata_attrs : Optional[Mapping[str, str]] = None\n    Dictionary storing extra attributes associated with the monitor data.\nt : Array\n    [units = sec].  Array of time values to use as coordintes.",
   "type": "object",
   "properties": {
      "type": {
         "title": "Type",
         "default": "TimeData",
         "enum": [
            "TimeData"
         ],
         "type": "string"
      },
      "values": {
         "title": "Values",
         "description": "Values of the raw data being stored.",
         "anyOf": [
            {
               "title": "NumpyArray",
               "description": "Wrapper around numpy arrays that has a well defined json schema.",
               "type": "object",
               "properties": {
                  "data_list": {
                     "title": "Data List",
                     "type": "array",
                     "items": {}
                  }
               },
               "required": [
                  "data_list"
               ]
            },
            {
               "title": "NumpyArray",
               "description": "Wrapper around numpy arrays that has a well defined json schema.",
               "type": "object",
               "properties": {
                  "data_list": {
                     "title": "Data List",
                     "type": "array",
                     "items": {}
                  }
               },
               "required": [
                  "data_list"
               ]
            }
         ]
      },
      "data_attrs": {
         "title": "Data Attributes",
         "description": "Dictionary storing extra attributes associated with the monitor data.",
         "type": "object",
         "additionalProperties": {
            "type": "string"
         }
      },
      "t": {
         "title": "NumpyArray",
         "description": "Wrapper around numpy arrays that has a well defined json schema.",
         "units": "sec",
         "type": "object",
         "properties": {
            "data_list": {
               "title": "Data List",
               "type": "array",
               "items": {}
            }
         },
         "required": [
            "data_list"
         ]
      }
   },
   "required": [
      "values",
      "t"
   ]
}

Fields
attribute t: tidy3d.components.types.Array [Required]#

Array of time values to use as coordintes.

Constraints
  • title = NumpyArray

  • description = Wrapper around numpy arrays that has a well defined json schema.

  • type = object

  • properties = {‘data_list’: {‘title’: ‘Data List’, ‘type’: ‘array’, ‘items’: {}}}

  • required = [‘data_list’]