Skip to content

Commit

Permalink
flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
david-i-berry committed Jul 7, 2023
1 parent 9595bfa commit 7cbadd8
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions synop2bufr/pygeoapi_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,16 +126,16 @@ def execute(self, data):
metadata = data['metadata']
year = data['year']
month = data['month']
bufr_generator = transform(data = fm12,
metadata = metadata,
year = year,
month = month)
bufr_generator = transform(data=fm12,
metadata=metadata,
year=year,
month=month)

# transform returns a generator, we need to iterate over
# and add to single output object

for result in bufr_generator:
# need to convert BUFR binary to base64
result['bufr4'] = base64.b64encode( result['bufr4'] ).decode("utf-8") # noqa
result['bufr4'] = base64.b64encode(result['bufr4']).decode("utf-8") # noqa
# convert datetime to string
result['_meta']['properties']['datetime'] = \
result['_meta']['properties']['datetime'].isoformat()
Expand Down

0 comments on commit 7cbadd8

Please sign in to comment.