equinor / resdata

Software for reading and writing the result files from the Eclipse reservoir simulator.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

get_num_cpu hangs on empty SLAVES section

eivindjahren opened this issue · comments

from resdata import ResdataUtil

def test_failure():
    data_contents = "SLAVES/\n"
    with open("TEST.DATA", "w") as f:
        f.write(data_contents)
    print(ResdataUtil.get_num_cpu("TEST.DATA"))

Turns out this was actually unproblematic