Slight reorganizing of Python tree
This commit is contained in:
@@ -1,3 +1 @@
|
||||
from opm._common import action
|
||||
|
||||
from .parser import parse, load_deck, load_deck_string, parse_string
|
||||
from .parser import *
|
||||
|
||||
@@ -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):
|
||||
@@ -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):
|
||||
@@ -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,
|
||||
|
||||
@@ -76,6 +76,9 @@ setup(
|
||||
packages=[
|
||||
'opm',
|
||||
'opm.io',
|
||||
'opm.io.parser',
|
||||
'opm.io.schedule',
|
||||
'opm.io.config',
|
||||
'opm.tools'
|
||||
],
|
||||
ext_modules=ext_modules,
|
||||
|
||||
Reference in New Issue
Block a user