

def test_new_get_file_entry():
    ml = flopy.modflow.Modflow(model_ws=out_dir)
    u2d = Util2d(ml, (5, 2), np.float32, np.ones((5, 2)), 'test', locat=99)
    print(u2d.get_file_entry(how='internal'))
    print(u2d.get_file_entry(how='constant'))
    print(u2d.get_file_entry(how='external'))
    u2d.format.binary = True
    print(u2d.get_file_entry(how='external'))
    u2d.format.binary = False
    print(u2d.get_file_entry(how='openclose'))
    u2d.format.binary = True
    print(u2d.get_file_entry(how='openclose'))
    ml.array_free_format = False
    u2d = Util2d(ml, (5, 2), np.float32, np.ones((5, 2)), 'test', locat=99)
    print(u2d.get_file_entry(how='internal'))
    print(u2d.get_file_entry(how='constant'))
    print(u2d.get_file_entry(how='external'))
    u2d.format.binary = True
    print(u2d.get_file_entry(how='external'))

dataset/ETHPy150Open modflowpy/flopy/autotest/t004_test.py test_new_get_file_entry/original