Skip to content

Commit

Permalink
STY: fix blank lines
Browse files Browse the repository at this point in the history
Fix PEP8 compliance for blank lines after functions.
  • Loading branch information
aburrell committed Aug 5, 2024
1 parent be1bbe3 commit 4d627af
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions pysatNASA/instruments/reach_dosimeter.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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.
Expand Down Expand Up @@ -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)

0 comments on commit 4d627af

Please sign in to comment.