-
Notifications
You must be signed in to change notification settings - Fork 6
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 #90 from DHI/bug/mikeio1d_together_with_mikepluspy
Fix loading of MIKE IO 1D when MIKE+Py is present.
- Loading branch information
Showing
7 changed files
with
68 additions
and
8 deletions.
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
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,21 @@ | ||
import sys | ||
|
||
|
||
def test_mikeio1d_and_mikepluspy_coexistence(test_file_path): | ||
# This test cannot run on a GitHub pipeline, because currently there is no way | ||
# to have MIKE+ installation on a virtual machine there. | ||
try: | ||
import mikeplus | ||
except: | ||
return | ||
|
||
from mikeplus.engines import Engine1D | ||
from mikeio1d import Res1D | ||
|
||
res1d = Res1D(test_file_path, result_reader_type="copier") | ||
|
||
df = res1d.read() | ||
|
||
|
||
if __name__ == "__main__": | ||
test_mikeio1d_and_mikepluspy_coexistence(sys.argv[1]) |
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