-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #481 from joakim-hove/add-ecl.ecl-compat
Add ecl.ecl compat
- Loading branch information
Showing
7 changed files
with
44 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
set(PYTHON_SOURCES | ||
__init__.py | ||
) | ||
add_python_package("python.ecl.ecl" ${PYTHON_INSTALL_PREFIX}/ecl/ecl "${PYTHON_SOURCES}" True) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# The structure of the python packages have been reorganized several times, | ||
# unfortunately we have not managed to deprecate properly and guide users over | ||
# to the new layout. We therefor now have two(?) varietes of old layout which | ||
# must(?) be supported for a while. | ||
# | ||
# from ert.ecl import EclEgrid | ||
# from ecl.ecl import EclGrid | ||
# | ||
# Both of these legacy forms are controlled by the cmake switch | ||
# INSTALL_ERT_LEGACY. | ||
|
||
from ert.ecl import * |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
from tests import EclTest | ||
|
||
class EclEclTest(EclTest): | ||
|
||
def test_import(self): | ||
import ecl.ecl as ecl | ||
grid = ecl.EclGrid | ||
sum = ecl.EclSum | ||
f = ecl.EclFile | ||
rft = ecl.EclRFTFile | ||
|
||
def test_import2(self): | ||
from ecl.ecl import EclFile | ||
from ecl.ecl import EclGrid | ||
from ecl.ecl import EclSum |