Skip to content

Commit

Permalink
flake
Browse files Browse the repository at this point in the history
  • Loading branch information
david-i-berry committed Feb 1, 2024
1 parent ea6e478 commit bdfb79d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions csv2bufr/templates/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,12 +110,12 @@ def load_template(template_name: str) -> Union[dict, None]:

if not ocset:
template['header'].append(
{"eccodes_key":"bufrHeaderCentre",
{"eccodes_key": "bufrHeaderCentre",
"value": f"const:{ORIGINATING_CENTRE}"})

if not oscset:
template['header'].append(
{"eccodes_key":"bufrHeaderSubCentre",
{"eccodes_key": "bufrHeaderSubCentre",
"value": f"const:{ORIGINATING_SUBCENTRE}"})

return template
Expand Down
2 changes: 1 addition & 1 deletion tests/test_csv2bufr.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,4 +268,4 @@ def test_templates():
assert tmpl['header'][hidx]['value'] == f"const:{oscenv}"
oscset = True
assert ocset
assert oscset
assert oscset

0 comments on commit bdfb79d

Please sign in to comment.