Esempio n. 1
0
    def test_ecl_kw_grdecl_load(self):
        with TestAreaContext("ecl_kw/deprecate/grdecl_load"):
            kw = EclKW("PORO" , 1000 , EclTypeEnum.ECL_FLOAT_TYPE)
            with open("PORO.grdecl" , "w") as poro_file:
                kw.write_grdecl( poro_file )

            with open("PORO.grdecl") as poro_file:
                with self.assertRaises(DeprecationWarning):
                    kw = EclKW.grdecl_load( poro_file , "PORO")
Esempio n. 2
0
    def test_ecl_kw_grdecl_load(self):
        with TestAreaContext("ecl_kw/deprecate/grdecl_load"):
            kw = EclKW("PORO" , 1000 , EclTypeEnum.ECL_FLOAT_TYPE)
            with open("PORO.grdecl" , "w") as poro_file:
                kw.write_grdecl( poro_file )

            with open("PORO.grdecl") as poro_file:
                with self.assertRaises(DeprecationWarning):
                    kw = EclKW.grdecl_load( poro_file , "PORO")