pypomp.models.UKMeasles.subset

classmethod UKMeasles.subset(units=None, clean=False)[source]

Return a subset of the UKMeasles data, filtered by the given units.

Parameters:
  • units (list of str, optional) – A list of unit names to subset the data by. If None, the entire dataset is returned.

  • clean (bool, optional) – If True, returns a copy of the data with suspicious values set to np.nan.

Return type:

A dictionary with the same structure as UKMeasles.data, but with the data subsetted to only include the given units.