From ad50a22ed7ea641d13f0c12ceb170a868bc403c8 Mon Sep 17 00:00:00 2001 From: Steinar Foss Date: Thu, 5 Sep 2019 21:05:19 +0200 Subject: [PATCH] removed python class EclipseConfig. --- python/python/opm/io/config/config.py | 5 ----- python/python/opm/io/parser/properties.py | 4 ---- python/tests/test_state.py | 13 ------------- 3 files changed, 22 deletions(-) diff --git a/python/python/opm/io/config/config.py b/python/python/opm/io/config/config.py index 39a126813..8f0e0ffe4 100644 --- a/python/python/opm/io/config/config.py +++ b/python/python/opm/io/config/config.py @@ -9,8 +9,3 @@ class SummaryConfig(object): def __repr__(self): return 'SummaryConfig()' - -@delegate(lib.EclipseConfig) -class EclipseConfig(object): - def __repr__(self): - return 'EclipseConfig()' diff --git a/python/python/opm/io/parser/properties.py b/python/python/opm/io/parser/properties.py index bb635c6c3..22c5df474 100644 --- a/python/python/opm/io/parser/properties.py +++ b/python/python/opm/io/parser/properties.py @@ -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()) diff --git a/python/tests/test_state.py b/python/tests/test_state.py index 948014e4f..587f30c40 100644 --- a/python/tests/test_state.py +++ b/python/tests/test_state.py @@ -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))