removed python class EclipseConfig.
This commit is contained in:
parent
7a3b693471
commit
ad50a22ed7
@ -9,8 +9,3 @@ class SummaryConfig(object):
|
||||
def __repr__(self):
|
||||
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 .sunbeam import delegate
|
||||
from ..schedule import Schedule
|
||||
from ..config import EclipseConfig
|
||||
|
||||
@delegate(lib.EclipseState)
|
||||
class EclipseState(object):
|
||||
@ -17,9 +16,6 @@ class EclipseState(object):
|
||||
def grid(self):
|
||||
return EclipseGrid(self._grid())
|
||||
|
||||
def cfg(self):
|
||||
return EclipseConfig(self._cfg())
|
||||
|
||||
@property
|
||||
def table(self):
|
||||
return Tables(self._tables())
|
||||
|
@ -73,19 +73,6 @@ SATNUM
|
||||
self.assertEqual(g, grid.globalIndex(i,j,k))
|
||||
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):
|
||||
smry = self.spe3.summary_config
|
||||
self.assertTrue('SummaryConfig' in repr(smry))
|
||||
|
Loading…
Reference in New Issue
Block a user