def _validate_units(self, units, **kwargs):
    '\n        Validates the astropy unit-information associated with a TimeSeries.\n\n        This method includes very basic validation checks which apply to\n        all of the kinds of files that SunPy can read. Datasource-specific\n        validation should be handled in the relevant file in the\n        sunpy.timeseries.sources package.\n\n        Allows for default unit assignment for:\n            COL_UNITS\n\n        '
    warnings.simplefilter('always', Warning)
    result = True
    for key in units:
        if (not isinstance(units[key], astropy.units.UnitBase)):
            result = False
            warnings.warn(f'Invalid unit given for {key}.', SunpyUserWarning)
    return result
Validates the astropy unit-information associated with a TimeSeries.

This method includes very basic validation checks which apply to
all of the kinds of files that SunPy can read. Datasource-specific
validation should be handled in the relevant file in the
sunpy.timeseries.sources package.

Allows for default unit assignment for:
    COL_UNITS
def _validate_units(self, units, **kwargs):
    '\n        Validates the astropy unit-information associated with a TimeSeries.\n\n        This method includes very basic validation checks which apply to\n        all of the kinds of files that SunPy can read. Datasource-specific\n        validation should be handled in the relevant file in the\n        sunpy.timeseries.sources package.\n\n        Allows for default unit assignment for:\n            COL_UNITS\n\n        '
    warnings.simplefilter('always', Warning)
    result = True
    for key in units:
        if (not isinstance(units[key], astropy.units.UnitBase)):
            result = False
            warnings.warn(f'Invalid unit given for {key}.', SunpyUserWarning)
    return result