pytwinnet.ingestion.csv_adapter

Functions

rmse(a, b)

Classes

CSVPositionDataSource(path)

CSV source for node positions.

ReplayMonitor(twin, source)

Replay updates from a DataSource into a DigitalTwin (offline).

class pytwinnet.ingestion.csv_adapter.CSVPositionDataSource(path)[source]

Bases: DataSource

CSV source for node positions.

CSV (header required):

timestamp_s,node_id,x,y,z

Parameters:

path (str)

connect()[source]
Return type:

None

path: str
read_data()[source]
Return type:

Iterator[Dict]

class pytwinnet.ingestion.csv_adapter.ReplayMonitor(twin, source)[source]

Bases: object

Replay updates from a DataSource into a DigitalTwin (offline).

Parameters:
run(speed=1.0)[source]
Return type:

int

Parameters:

speed (float)

pytwinnet.ingestion.csv_adapter.rmse(a, b)[source]
Return type:

float

Parameters: