mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
* Move case loading commands from Commands to project and case * Major refactor * Fix problems with Python examples * Add ability to export snapshot from just one view + fixup * Case comments and black * Make all modules pass pylint test
18 lines
485 B
Python
18 lines
485 B
Python
import sys
|
|
import os
|
|
|
|
sys.path.insert(1, os.path.join(sys.path[0], '../../'))
|
|
import rips
|
|
|
|
import dataroot
|
|
|
|
def test_10k(rips_instance, initialize_test):
|
|
casePath = dataroot.PATH + "/TEST10K_FLT_LGR_NNC/TEST10K_FLT_LGR_NNC.EGRID"
|
|
case = rips_instance.project.load_case(path=casePath)
|
|
assert(len(case.grids()) == 2)
|
|
grid = case.grid(index=0)
|
|
dimensions = grid.dimensions()
|
|
assert(dimensions.i == 90)
|
|
assert(dimensions.j == 96)
|
|
assert(dimensions.k == 36)
|