Skip to content

Commit

Permalink
Add clone with headers_only option (take 2)
Browse files Browse the repository at this point in the history
  • Loading branch information
shahramn committed Jan 9, 2024
1 parent 55a01ff commit 28e85e2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/test_eccodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,9 @@ def test_grib_clone():


def test_grib_clone_headers_only():
if eccodes.codes_get_api_version(int) < 23400:
print("Test skipped (ecCodes version too old)")
return
with open(TEST_GRIB_ERA5_DATA, "rb") as f:
msgid1 = eccodes.codes_grib_new_from_file(f)
msgid2 = eccodes.codes_clone(msgid1, headers_only=True)
Expand Down

0 comments on commit 28e85e2

Please sign in to comment.