def __init__()

in granule_ingester/granule_ingester/processors/reading_processors/TileReadingProcessor.py [0:0]


    def __init__(self, variable: Union[str, list], latitude: str, longitude: str, *args, **kwargs):
        try:
            self.variable = json.loads(variable)
        except Exception as e:
            logger.exception(f'failed to convert literal list to python list. using as a single variable: {variable}')
            self.variable = variable
        if isinstance(self.variable, list) and len(self.variable) < 1:
            logger.error(f'variable list is empty: {TileReadingProcessor}')
            raise RuntimeError(f'variable list is empty: {self.variable}')
        self.latitude = latitude
        self.longitude = longitude