Changeset 23753


Ignore:
Timestamp:
02/25/19 14:58:56 (6 years ago)
Author:
schlegel
Message:

CHG: need to remove encoding for py2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/test/NightlyRun/test243.py

    r23707 r23753  
    11#Test Name: SquareShelfSMBGemb
    22import numpy as np
     3import sys
    34from model import *
    45from socket import gethostname
     
    2324
    2425#load hourly surface forcing date from 1979 to 2009:
    25 inputs = np.load('../Data/gemb_input.npy',encoding='bytes').item()
     26if sys.version_info.major == 2:
     27  inputs = np.load('../Data/gemb_input.npy').item()
     28else:
     29  inputs = np.load('../Data/gemb_input.npy',encoding='bytes').item()
    2630
    2731#setup the inputs:
Note: See TracChangeset for help on using the changeset viewer.