Changeset c77630a in flex_extract.git for Source/Python/Mods/tools.py


Ignore:
Timestamp:
Aug 13, 2019, 12:32:22 PM (5 years ago)
Author:
Anne Philipp <anne.philipp@…>
Branches:
master, ctbto, dev
Children:
0690a6c
Parents:
33a4ccc
Message:

BUGFIX: for python3-eccodes the file openings need to be in binary mode! added binary marker in filemode

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Source/Python/Mods/tools.py

    r44174de rc77630a  
    763763    # --- open file ---
    764764    print("Opening file for getting information data --- %s" % filename)
    765     with open(filename) as f:
     765    with open(filename, 'rb') as f:
    766766        # load first message from file
    767767        gid = codes_grib_new_from_file(f)
Note: See TracChangeset for help on using the changeset viewer.
hosted by ZAMG