sample_type module

DataAcquisition

class edgeimpulse.data.sample_type.DataAcquisition(
		protected: edgeimpulse.data.sample_type.Protected,
		payload: edgeimpulse.data.sample_type.Payload,
		signature: Optional[str= None
)

Wrapper class for the Edge Impulse data acquisition format.

See here for more information: https://docs.edgeimpulse.com/reference/data-acquisition-format.

Parameters

  • protected: edgeimpulse.data.sample_type.Protected

  • payload: edgeimpulse.data.sample_type.Payload

  • signature: Optional[str] = None

Class variables

  • payload: edgeimpulse.data.sample_type.Payload

  • protected: edgeimpulse.data.sample_type.Protected

  • signature: Optional[str]

Payload

class edgeimpulse.data.sample_type.Payload(
		device_type: str,
		sensors: Sequence[edgeimpulse.data.sample_type.Sensor],
		values: Sequence[Sequence[float]],
		interval_ms: Optional[int= 0,
		device_name: Optional[str= None
)

Wrapper class for the sensor data.

Information about the data acquisition format can be found here: https://docs.edgeimpulse.com/reference/data-acquisition-format.

Parameters

  • device_type: str

  • sensors: Sequence[edgeimpulse.data.sample_type.Sensor]

  • values: Sequence[Sequence[float]]

  • interval_ms: Optional[int] = 0

  • device_name: Optional[str] = None

Class variables

  • device_name: Optional[str]

  • device_type: str

  • interval_ms: Optional[int]

  • sensors: Sequence[edgeimpulse.data.sample_type.Sensor]

  • values: Sequence[Sequence[float]]

Protected

class edgeimpulse.data.sample_type.Protected(
		ver: str = 'v1',
		alg: Literal['HS256''none'= 'none',
		iat: Optional[int= None
)

Wrapper class for information about the signature format.

More information can be found here: https://docs.edgeimpulse.com/reference/data-acquisition-format.

Parameters

  • ver: str = 'v1'

  • alg: Literal['HS256', 'none'] = 'none'

  • iat: Optional[int] = None

Class variables

  • alg: Literal['HS256', 'none']

  • iat: Optional[int]

  • ver: str

Sample

class edgeimpulse.data.sample_type.Sample(
		data: Union[io.BufferedIOBase, _io.StringIO, str],
		filename: Optional[str= None,