Uploaded image for project: 'Apache Open Climate Workbench (Retired)'
  1. Apache Open Climate Workbench (Retired)
  2. CLIMATE-882

local data source is not Python 3 compatible

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.1.0
    • 1.2.0
    • None
    • None

    Description

      Tests are failing for our python 3 builds because of the local module. Specifically, _get_netcdf_variable_name() raises an exception because Python 3 implicitly treats strings as unicode instead of bytes. The culprit is specifically this line:

      dims_lower = [dim.encode().lower() for dim in dimensions]
      

      Because encode() converts the strings to bytes in python 3.

      Attachments

        Issue Links

          Activity

            People

              agoodman Alex Goodman
              agoodman Alex Goodman
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: