Slight reorganizing of Python tree

This commit is contained in:
Joakim Hove
2019-08-23 19:15:51 +02:00
parent 8e8abee556
commit c516f868e4
11 changed files with 17 additions and 8 deletions
+1 -3
View File
@@ -1,3 +1 @@
from opm._common import action
from .parser import parse, load_deck, load_deck_string, parse_string
from .parser import *
+1
View File
@@ -0,0 +1 @@
from .config import *
@@ -1,13 +1,15 @@
from __future__ import absolute_import
from opm import libopmcommon_python as lib
from .sunbeam import delegate
from ..parser.sunbeam import delegate
@delegate(lib.SummaryConfig)
class SummaryConfig(object):
def __repr__(self):
return 'SummaryConfig()'
@delegate(lib.EclipseConfig)
class EclipseConfig(object):
def __repr__(self):
+4
View File
@@ -0,0 +1,4 @@
from opm._common import action
from .parser import parse, load_deck, load_deck_string, parse_string
@@ -3,8 +3,8 @@ from os.path import isfile
from opm import libopmcommon_python as lib
from .sunbeam import delegate
from .schedule import Schedule
from .config import EclipseConfig
from ..schedule import Schedule
from ..config import EclipseConfig
@delegate(lib.EclipseState)
class EclipseState(object):
@@ -0,0 +1 @@
from .schedule import *
@@ -1,7 +1,7 @@
from __future__ import absolute_import
from opm import libopmcommon_python as lib
from .sunbeam import delegate
from ..parser.sunbeam import delegate
@delegate(lib.Schedule)
class Schedule(object):
+1 -1
View File
@@ -6,7 +6,7 @@ except ImportError:
from io import StringIO
from opm.parser import load_deck, load_deck_string
from opm.io.parser import load_deck, load_deck_string
# This is from the TimeMap.cpp implementation in opm
ecl_month = {"JAN" : 1,
+3
View File
@@ -76,6 +76,9 @@ setup(
packages=[
'opm',
'opm.io',
'opm.io.parser',
'opm.io.schedule',
'opm.io.config',
'opm.tools'
],
ext_modules=ext_modules,