From 4d627af74614187864e1ba0ed9ddf26b32fcc35d Mon Sep 17 00:00:00 2001 From: Angeline Burrell Date: Mon, 5 Aug 2024 15:28:24 -0400 Subject: [PATCH] STY: fix blank lines Fix PEP8 compliance for blank lines after functions. --- pysatNASA/instruments/reach_dosimeter.py | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/pysatNASA/instruments/reach_dosimeter.py b/pysatNASA/instruments/reach_dosimeter.py index d56cc0c5..44e59ddf 100644 --- a/pysatNASA/instruments/reach_dosimeter.py +++ b/pysatNASA/instruments/reach_dosimeter.py @@ -91,6 +91,7 @@ def preprocess(self): # # Use the default CDAWeb and pysat methods + # Set the list_files routine datestr = '{year:04d}{month:02d}{day:02d}' fname = 'reach-vid-{inst_id}_dosimeter-l1c_{datestr}_v{{version:01d}}.nc' @@ -100,6 +101,16 @@ def preprocess(self): supported_tags=supported_tags) +# Support download routine +download_tags = {iid: {'': 'REACH-VID-{iid}_DOSIMETER-L1C'.format(iid=iid)} + for iid in inst_ids.keys()} +download = functools.partial(cdw.cdas_download, supported_tags=download_tags) + +# Support listing files currently on CDAWeb +list_remote_files = functools.partial(cdw.cdas_list_remote_files, + supported_tags=download_tags) + + def load(fnames, tag=None, inst_id=None): """Load REACH data into `pandas.DataFrame` and `pysat.Meta` objects. @@ -160,13 +171,3 @@ def load(fnames, tag=None, inst_id=None): meta.header = MetaHeader(new_header) return data, meta - - -# Support download routine -download_tags = {iid: {'': 'REACH-VID-{iid}_DOSIMETER-L1C'.format(iid=iid)} - for iid in inst_ids.keys()} -download = functools.partial(cdw.cdas_download, supported_tags=download_tags) - -# Support listing files currently on CDAWeb -list_remote_files = functools.partial(cdw.cdas_list_remote_files, - supported_tags=download_tags)