Changeset 17169


Ignore:
Timestamp:
01/24/14 13:58:55 (11 years ago)
Author:
Mathieu Morlighem
Message:

BUG: fixing previous commit, python's exponent is , and EnumToString returns only one output -> [0]

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/solve/WriteData.py

    r17167 r17169  
    202202                #first write length of record
    203203                recordlength=4+4+8*s[0]*s[1]+4+4; #2 integers (32 bits) + the double matrix + code + matrix type
    204                 if recordlength > 2^31 :
    205                         raise ValueError('field %s cannot be marshalled because it is larger than 4^31 bytes!' % EnumToString(enum)[1])
     204                if recordlength > 2**31 :
     205                        raise ValueError('field %s cannot be marshalled because it is larger than 4^31 bytes!' % EnumToString(enum)[0])
    206206
    207207                fid.write(struct.pack('i',recordlength))  #2 integers (32 bits) + the double matrix + code + matrix type
Note: See TracChangeset for help on using the changeset viewer.