def _sanitize_metadata(self, **kwargs):
    "\n        Sanitises the TimeSeriesMetaData object used to store the metadata.\n        Primarily this method will:\n\n        Remove entries outside of the datas TimeRange or truncate TimeRanges\n        if the metadata overflows past the data,\n        Remove column references in the metadata that don't match to a column\n        in the data.\n        Remove metadata entries that have no columns matching the data.\n        "
    warnings.simplefilter('always', Warning)
    self.meta._truncate(self.time_range)
    redundant_cols = list((set(self.meta.columns) - set(self.columns)))
    self.meta._remove_columns(redundant_cols)
Sanitises the TimeSeriesMetaData object used to store the metadata.
Primarily this method will:

Remove entries outside of the datas TimeRange or truncate TimeRanges
if the metadata overflows past the data,
Remove column references in the metadata that don't match to a column
in the data.
Remove metadata entries that have no columns matching the data.
def _sanitize_metadata(self, **kwargs):
    "\n        Sanitises the TimeSeriesMetaData object used to store the metadata.\n        Primarily this method will:\n\n        Remove entries outside of the datas TimeRange or truncate TimeRanges\n        if the metadata overflows past the data,\n        Remove column references in the metadata that don't match to a column\n        in the data.\n        Remove metadata entries that have no columns matching the data.\n        "
    warnings.simplefilter('always', Warning)
    self.meta._truncate(self.time_range)
    redundant_cols = list((set(self.meta.columns) - set(self.columns)))
    self.meta._remove_columns(redundant_cols)