DVector.validate_ipf_targets#

DVector.validate_ipf_targets(targets, rel_tol=0.001, cache_path=None)[source]#

Check targets for ipf will work, raises errors if not.

Parameters:
  • targets (list[IpfTarget]) – List of IPF targets to validate.

  • rel_tol (float = 1e-5) – The tolerance for relative difference in sums of targets.

  • cache_path (None | PathLike = None) – Translations cache path, if None reverts to default.

Return type:

Input targets, with zone translations added in if relevant.