Skip to content

Commit

Permalink
Flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
RoryPTB committed Sep 20, 2023
1 parent 522eef2 commit 9695d72
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions synop2bufr/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1520,7 +1520,8 @@ def transform(data: str, metadata: str, year: int,
"value": f"data:vs_s3_{idx+1}"},
{"eccodes_key": f"#{idx+3}#cloudAmount",
"value": f"data:cloud_amount_s3_{idx+1}",
"valid_min": "const:0", "valid_max": "const:8"},
"valid_min": "const:0",
"valid_max": "const:8"},
{"eccodes_key": f"#{idx+5}#cloudType",
"value": f"data:cloud_genus_s3_{idx+1}"},
{"eccodes_key": f"#{idx+2}#heightOfBaseOfCloud",
Expand Down Expand Up @@ -1553,14 +1554,19 @@ def transform(data: str, metadata: str, year: int,
"#verticalSignificanceSurfaceObservations"
),
"value": f"const:{vs_s4}"},
{"eccodes_key": f"#{idx+num_s3_clouds+3}#cloudAmount",
{"eccodes_key":
f"#{idx+num_s3_clouds+3}#cloudAmount",
"value": f"data:cloud_amount_s4_{idx+1}",
"valid_min": "const:0", "valid_max": "const:8"},
{"eccodes_key": f"#{idx+num_s3_clouds+5}#cloudType",
"valid_min": "const:0",
"valid_max": "const:8"},
{"eccodes_key":
f"#{idx+num_s3_clouds+5}#cloudType",
"value": f"data:cloud_genus_s4_{idx+1}"},
{"eccodes_key": f"#{idx+1}#heightOfTopOfCloud",
{"eccodes_key":
f"#{idx+1}#heightOfTopOfCloud",
"value": f"data:cloud_height_s4_{idx+1}"},
{"eccodes_key": f"#{idx+1}#cloudTopDescription",
{"eccodes_key":
f"#{idx+1}#cloudTopDescription",
"value": f"data:cloud_top_s4_{idx+1}"}
]
for m in s4_mappings:
Expand Down

0 comments on commit 9695d72

Please sign in to comment.