ash_model.readwrite.io.read_profiles_from_jsonl

ash_model.readwrite.io.read_profiles_from_jsonl(path, compress=False)[source]

Read a dictionary of node profiles from a JSONL file. The dictionary maps node IDs to dictionaries of timestamps to node profiles.

Parameters:
  • path (str) – Path to the JSONL file.

  • compress (bool) – If True, the file is assumed to be compressed using gzip.

Returns:

Dictionary of node profiles.

Return type:

dict