energy_data_retrieval.foobot#

Read published Foobot simulation outputs; never execute the JavaScript wrapper.

class energy_data_retrieval.foobot.ThermalPanel(date, test, offset, threshold, minutes, truth, median, lo, hi, setpoint, command)[source]#

Bases: object

Published temperatures (degrees C) and minutes relative to baseline start.

Dates are simulation dates, not observations. Time zone is not published; relative minutes deliberately avoid inventing UTC timestamps.

Parameters:
  • date (str)

  • test (str)

  • offset (int)

  • threshold (float)

  • minutes (tuple[float, ...])

  • truth (tuple[float, ...])

  • median (tuple[float, ...])

  • lo (tuple[float, ...])

  • hi (tuple[float, ...])

  • setpoint (tuple[float, ...])

  • command (tuple[float, ...])

date: str#
test: str#
offset: int#
threshold: float#
minutes: tuple[float, ...]#
truth: tuple[float, ...]#
median: tuple[float, ...]#
lo: tuple[float, ...]#
hi: tuple[float, ...]#
setpoint: tuple[float, ...]#
command: tuple[float, ...]#
energy_data_retrieval.foobot.parse_foobot(text)[source]#

Validate the fixed assignment wrapper and decode JSON without eval.

Reject duplicate panels, incomplete schedules, nonfinite or unordered data, and inconsistent T2 issue times/setpoints. No missing trajectories are filled.

Parameters:

text (str)

Return type:

tuple[ThermalPanel, …]

energy_data_retrieval.foobot.fetch_foobot()[source]#

Fetch the public numerical asset with a timeout and 5 MB size bound.

The returned source text is intended for local audit, not redistribution of the publisher’s scripts or artwork. Public access does not imply a licence.

Return type:

str