From 0e55137a01ace94ca17cf44a311d4e44ab7596af Mon Sep 17 00:00:00 2001 From: Martin Raspaud Date: Mon, 9 Jan 2023 11:47:01 +0100 Subject: [PATCH] Remove unneeded code from olci reader --- satpy/readers/olci_nc.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/satpy/readers/olci_nc.py b/satpy/readers/olci_nc.py index ae0bcd8366..5b1b584a1c 100644 --- a/satpy/readers/olci_nc.py +++ b/satpy/readers/olci_nc.py @@ -40,7 +40,6 @@ import logging -from contextlib import suppress from functools import reduce import dask.array as da @@ -109,7 +108,6 @@ def __init__(self, filename, filename_info, filetype_info, # TODO: get metadata from the manifest file (xfdumanifest.xml) self.platform_name = PLATFORM_NAMES[filename_info['mission_id']] self.sensor = 'olci' - self.open_file = None @cached_property def nc(self): @@ -140,11 +138,6 @@ def get_dataset(self, key, info): return variable - def __del__(self): - """Close the NetCDF file that may still be open.""" - with suppress(IOError, OSError, AttributeError, TypeError): - self.nc.close() - class NCOLCICal(NCOLCIBase): """Dummy class for calibration."""