load_pool#

popo.profiles.smartds.load_pool(profiles_dir, kind='res')#

Read paired (P, Q) pools of shape (steps, customers) plus their ids.

Parameters:
  • profiles_dir (Path) – Directory containing {kind}_kw_{id}_pu.csv and {kind}_kvar_{id}_pu.csv pairs.

  • kind (str) – Customer class, matched in the filename, e.g. "res" or "com".

Return type:

tuple[ndarray, ndarray, list[str]]

Returns:

(p, q, ids) – active and reactive per-unit pools at STEPS_15MIN resolution, and the kept customer ids in column order. A kw profile with no matching kvar pair, or either profile not covering a full year at 15-minute resolution, is dropped.