pytuflow.arr.write_working_data

pytuflow.arr.write_working_data#

class write_working_data(config, response, engine)#

Bases:

Writes working data files for a single site.

Writes the ARR Data Hub JSON response (always, plus one per additional temporal_patterns.additional_tp region), the raw point/areal temporal pattern increment CSVs (including for any additional TP regions) and, if config.output.verbose is set, the areal design IFD table, ARF table, burst initial loss table and extrapolated short-duration losses table (if any losses were extrapolated), into a working_data subfolder of config.output.path.

Parameters:
  • config (ArrConfig) – The ARR configuration. Files are written to <config.output.path>/working_data.

  • response (ArrApiResponse) – The ARR Data Hub response used to build the events.

  • engine (ArrEngine) – The engine that assembled the events. ArrEngine.run() must have been called first.

__init__(**kwargs)#