removed python class EclipseConfig.
This commit is contained in:
parent
7a3b693471
commit
ad50a22ed7
@ -9,8 +9,3 @@ class SummaryConfig(object):
|
|||||||
def __repr__(self):
|
def __repr__(self):
|
||||||
return 'SummaryConfig()'
|
return 'SummaryConfig()'
|
||||||
|
|
||||||
|
|
||||||
@delegate(lib.EclipseConfig)
|
|
||||||
class EclipseConfig(object):
|
|
||||||
def __repr__(self):
|
|
||||||
return 'EclipseConfig()'
|
|
||||||
|
@ -4,7 +4,6 @@ from os.path import isfile
|
|||||||
from opm import libopmcommon_python as lib
|
from opm import libopmcommon_python as lib
|
||||||
from .sunbeam import delegate
|
from .sunbeam import delegate
|
||||||
from ..schedule import Schedule
|
from ..schedule import Schedule
|
||||||
from ..config import EclipseConfig
|
|
||||||
|
|
||||||
@delegate(lib.EclipseState)
|
@delegate(lib.EclipseState)
|
||||||
class EclipseState(object):
|
class EclipseState(object):
|
||||||
@ -17,9 +16,6 @@ class EclipseState(object):
|
|||||||
def grid(self):
|
def grid(self):
|
||||||
return EclipseGrid(self._grid())
|
return EclipseGrid(self._grid())
|
||||||
|
|
||||||
def cfg(self):
|
|
||||||
return EclipseConfig(self._cfg())
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def table(self):
|
def table(self):
|
||||||
return Tables(self._tables())
|
return Tables(self._tables())
|
||||||
|
@ -73,19 +73,6 @@ SATNUM
|
|||||||
self.assertEqual(g, grid.globalIndex(i,j,k))
|
self.assertEqual(g, grid.globalIndex(i,j,k))
|
||||||
self.assertEqual((i,j,k), grid.getIJK(g))
|
self.assertEqual((i,j,k), grid.getIJK(g))
|
||||||
|
|
||||||
def test_config(self):
|
|
||||||
cfg = self.state.cfg()
|
|
||||||
self.assertTrue('EclipseConfig' in repr(cfg))
|
|
||||||
|
|
||||||
init = cfg.init()
|
|
||||||
self.assertTrue(init.hasEquil())
|
|
||||||
self.assertFalse(init.restartRequested())
|
|
||||||
self.assertEqual(0, init.getRestartStep())
|
|
||||||
|
|
||||||
rst = cfg.restart()
|
|
||||||
self.assertFalse(rst.getWriteRestartFile(0))
|
|
||||||
self.assertEqual(7, rst.getFirstRestartStep())
|
|
||||||
|
|
||||||
def test_summary(self):
|
def test_summary(self):
|
||||||
smry = self.spe3.summary_config
|
smry = self.spe3.summary_config
|
||||||
self.assertTrue('SummaryConfig' in repr(smry))
|
self.assertTrue('SummaryConfig' in repr(smry))
|
||||||
|
Loading…
Reference in New Issue
Block a user