resfo-utilities 0.0.1__tar.gz → 0.0.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of resfo-utilities might be problematic. Click here for more details.
- {resfo_utilities-0.0.1 → resfo_utilities-0.0.2}/PKG-INFO +1 -1
- {resfo_utilities-0.0.1 → resfo_utilities-0.0.2}/src/resfo_utilities/_cornerpoint_grid.py +1 -1
- {resfo_utilities-0.0.1 → resfo_utilities-0.0.2}/src/resfo_utilities.egg-info/PKG-INFO +1 -1
- {resfo_utilities-0.0.1 → resfo_utilities-0.0.2}/tests/unit/test_cornerpoint_grid.py +36 -0
- {resfo_utilities-0.0.1 → resfo_utilities-0.0.2}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
- {resfo_utilities-0.0.1 → resfo_utilities-0.0.2}/.github/dependabot.yml +0 -0
- {resfo_utilities-0.0.1 → resfo_utilities-0.0.2}/.github/mypy-matcher.json +0 -0
- {resfo_utilities-0.0.1 → resfo_utilities-0.0.2}/.github/workflows/publish_to_pypi.yml +0 -0
- {resfo_utilities-0.0.1 → resfo_utilities-0.0.2}/.github/workflows/testing.yml +0 -0
- {resfo_utilities-0.0.1 → resfo_utilities-0.0.2}/.github/workflows/typing.yml +0 -0
- {resfo_utilities-0.0.1 → resfo_utilities-0.0.2}/.gitignore +0 -0
- {resfo_utilities-0.0.1 → resfo_utilities-0.0.2}/.mypy.ini +0 -0
- {resfo_utilities-0.0.1 → resfo_utilities-0.0.2}/.pre-commit-config.yaml +0 -0
- {resfo_utilities-0.0.1 → resfo_utilities-0.0.2}/.readthedocs.yaml +0 -0
- {resfo_utilities-0.0.1 → resfo_utilities-0.0.2}/CONTRIBUTING.md +0 -0
- {resfo_utilities-0.0.1 → resfo_utilities-0.0.2}/README.md +0 -0
- {resfo_utilities-0.0.1 → resfo_utilities-0.0.2}/SECURITY.md +0 -0
- {resfo_utilities-0.0.1 → resfo_utilities-0.0.2}/docs/requirements.txt +0 -0
- {resfo_utilities-0.0.1 → resfo_utilities-0.0.2}/docs/source/api_reference.rst +0 -0
- {resfo_utilities-0.0.1 → resfo_utilities-0.0.2}/docs/source/conf.py +0 -0
- {resfo_utilities-0.0.1 → resfo_utilities-0.0.2}/docs/source/glossary.rst +0 -0
- {resfo_utilities-0.0.1 → resfo_utilities-0.0.2}/docs/source/index.rst +0 -0
- {resfo_utilities-0.0.1 → resfo_utilities-0.0.2}/pyproject.toml +0 -0
- {resfo_utilities-0.0.1 → resfo_utilities-0.0.2}/setup.cfg +0 -0
- {resfo_utilities-0.0.1 → resfo_utilities-0.0.2}/src/resfo_utilities/__init__.py +0 -0
- {resfo_utilities-0.0.1 → resfo_utilities-0.0.2}/src/resfo_utilities.egg-info/SOURCES.txt +0 -0
- {resfo_utilities-0.0.1 → resfo_utilities-0.0.2}/src/resfo_utilities.egg-info/dependency_links.txt +0 -0
- {resfo_utilities-0.0.1 → resfo_utilities-0.0.2}/src/resfo_utilities.egg-info/requires.txt +0 -0
- {resfo_utilities-0.0.1 → resfo_utilities-0.0.2}/src/resfo_utilities.egg-info/top_level.txt +0 -0
- {resfo_utilities-0.0.1 → resfo_utilities-0.0.2}/tests/__init__.py +0 -0
- {resfo_utilities-0.0.1 → resfo_utilities-0.0.2}/tests/conftest.py +0 -0
- {resfo_utilities-0.0.1 → resfo_utilities-0.0.2}/tests/integration/__init__.py +0 -0
- {resfo_utilities-0.0.1 → resfo_utilities-0.0.2}/tests/integration/conftest.py +0 -0
- {resfo_utilities-0.0.1 → resfo_utilities-0.0.2}/tests/integration/test_grid.py +0 -0
- {resfo_utilities-0.0.1 → resfo_utilities-0.0.2}/tests/performance/__init__.py +0 -0
- {resfo_utilities-0.0.1 → resfo_utilities-0.0.2}/tests/performance/test_find_cell_performance.py +0 -0
- {resfo_utilities-0.0.1 → resfo_utilities-0.0.2}/tests/unit/__init__.py +0 -0
- {resfo_utilities-0.0.1 → resfo_utilities-0.0.2}/uv.lock +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: resfo-utilities
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.2
|
|
4
4
|
Summary: A utility library for working with the output of reservoir simulators.
|
|
5
5
|
Author-email: Equinor <fg_sib-scout@equinor.com>
|
|
6
6
|
Maintainer-email: Eivind Jahren <ejah@equinor.com>, Håkon Steinkopf Søhoel <hsoho@equinor.com>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: resfo-utilities
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.2
|
|
4
4
|
Summary: A utility library for working with the output of reservoir simulators.
|
|
5
5
|
Author-email: Equinor <fg_sib-scout@equinor.com>
|
|
6
6
|
Maintainer-email: Eivind Jahren <ejah@equinor.com>, Håkon Steinkopf Søhoel <hsoho@equinor.com>
|
|
@@ -433,3 +433,39 @@ def test_that_point_in_cell_correctly_orders_zcorn_against_coord():
|
|
|
433
433
|
# By default points are in the map coordinate system
|
|
434
434
|
assert grid.point_in_cell(point, 0, 0, 0)
|
|
435
435
|
assert grid.find_cell_containing_point(point) == [(0, 0, 0)]
|
|
436
|
+
|
|
437
|
+
|
|
438
|
+
def test_that_point_in_cell_correctly_assign_vertices_to_faces():
|
|
439
|
+
"""This is a regression test for a bug where point_in_cell
|
|
440
|
+
assigned vertices to faces in a way that created a hole in the cell surface"""
|
|
441
|
+
grid = CornerpointGrid(
|
|
442
|
+
coord=np.array(
|
|
443
|
+
[
|
|
444
|
+
[
|
|
445
|
+
[[0, 0, 0], [0, 0, 1]],
|
|
446
|
+
[[1, 0, 0], [1, 0, 1]],
|
|
447
|
+
],
|
|
448
|
+
[
|
|
449
|
+
[[0, 2, 0], [0, 1, 1]],
|
|
450
|
+
[[1, 1, 0], [1, 2, 1]],
|
|
451
|
+
],
|
|
452
|
+
],
|
|
453
|
+
dtype=np.float32,
|
|
454
|
+
),
|
|
455
|
+
zcorn=np.array(
|
|
456
|
+
[
|
|
457
|
+
[
|
|
458
|
+
[
|
|
459
|
+
[0, 0, 0, 0, 1, 1, 1, 1],
|
|
460
|
+
]
|
|
461
|
+
]
|
|
462
|
+
],
|
|
463
|
+
dtype=np.float32,
|
|
464
|
+
),
|
|
465
|
+
)
|
|
466
|
+
|
|
467
|
+
# A point contained in cell 0,0,0
|
|
468
|
+
point = np.array([[0.9, 1.0, 0.75]], dtype=np.float64)
|
|
469
|
+
|
|
470
|
+
assert grid.point_in_cell(point, 0, 0, 0)
|
|
471
|
+
assert grid.find_cell_containing_point(point) == [(0, 0, 0)]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{resfo_utilities-0.0.1 → resfo_utilities-0.0.2}/src/resfo_utilities.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{resfo_utilities-0.0.1 → resfo_utilities-0.0.2}/tests/performance/test_find_cell_performance.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|