dandeliion.client.Solution

class dandeliion.client.Solution(sim: Simulator, prefetched_data: dict | str | Path, time_column: str = None)[source]

Dictionary-style class for the solutions of a simulation run returned by solve()

__init__(sim: Simulator, prefetched_data: dict | str | Path, time_column: str = None)[source]

Constructor

Parameters:
  • sim (Simulator) – simulator instance for fetching data from server

  • prefetched_data (dict | str | Path) – existing (meta) data either as dictionary or stored in json file

  • time_column (str) – label of time column (used for interpolation)

Methods

__init__(sim, prefetched_data[, time_column])

Constructor

dump(filepath)

Fetches all data and stores it into file.

get(k[,d])

items()

join()

Blocks until solution is available (i.e. simulation is done).

keys()

values()

Attributes

log

Returns the log file produced by the backend

status

Returns the status of the simulation run linked to this solutions