Ignore:
Timestamp:
Oct 23, 2019 2:59:33 PM (7 weeks ago)
Author:
aramle
Message:

#5819 Updating file to open to be Python 3 compatible.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/dev-5819/Python/src/pyjmi/optimization/thread_feval.py

    r13461 r13824  
    8585        if retval != 0:
    8686            raise OSError('Something went wrong with the function evaluation: os.system did not return 0.')
    87         f_string = file(dir_name+'/f_value.txt').read()
     87        f_string = open(dir_name+'/f_value.txt').read()
    8888        fval = eval(f_string)
    8989   
     
    108108                raise OSError('Something went wrong with the function evaluation: os.system did not return 0.')
    109109            dir_name = 'dir_'+str(i+1)
    110             f_string = file(dir_name+'/f_value.txt').read()
     110            f_string = open(dir_name+'/f_value.txt').read()
    111111            fval[i] = eval(f_string)
    112112   
Note: See TracChangeset for help on using the changeset viewer.