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.

Files changed (38) hide show
  1. {resfo_utilities-0.0.1 → resfo_utilities-0.0.2}/PKG-INFO +1 -1
  2. {resfo_utilities-0.0.1 → resfo_utilities-0.0.2}/src/resfo_utilities/_cornerpoint_grid.py +1 -1
  3. {resfo_utilities-0.0.1 → resfo_utilities-0.0.2}/src/resfo_utilities.egg-info/PKG-INFO +1 -1
  4. {resfo_utilities-0.0.1 → resfo_utilities-0.0.2}/tests/unit/test_cornerpoint_grid.py +36 -0
  5. {resfo_utilities-0.0.1 → resfo_utilities-0.0.2}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
  6. {resfo_utilities-0.0.1 → resfo_utilities-0.0.2}/.github/dependabot.yml +0 -0
  7. {resfo_utilities-0.0.1 → resfo_utilities-0.0.2}/.github/mypy-matcher.json +0 -0
  8. {resfo_utilities-0.0.1 → resfo_utilities-0.0.2}/.github/workflows/publish_to_pypi.yml +0 -0
  9. {resfo_utilities-0.0.1 → resfo_utilities-0.0.2}/.github/workflows/testing.yml +0 -0
  10. {resfo_utilities-0.0.1 → resfo_utilities-0.0.2}/.github/workflows/typing.yml +0 -0
  11. {resfo_utilities-0.0.1 → resfo_utilities-0.0.2}/.gitignore +0 -0
  12. {resfo_utilities-0.0.1 → resfo_utilities-0.0.2}/.mypy.ini +0 -0
  13. {resfo_utilities-0.0.1 → resfo_utilities-0.0.2}/.pre-commit-config.yaml +0 -0
  14. {resfo_utilities-0.0.1 → resfo_utilities-0.0.2}/.readthedocs.yaml +0 -0
  15. {resfo_utilities-0.0.1 → resfo_utilities-0.0.2}/CONTRIBUTING.md +0 -0
  16. {resfo_utilities-0.0.1 → resfo_utilities-0.0.2}/README.md +0 -0
  17. {resfo_utilities-0.0.1 → resfo_utilities-0.0.2}/SECURITY.md +0 -0
  18. {resfo_utilities-0.0.1 → resfo_utilities-0.0.2}/docs/requirements.txt +0 -0
  19. {resfo_utilities-0.0.1 → resfo_utilities-0.0.2}/docs/source/api_reference.rst +0 -0
  20. {resfo_utilities-0.0.1 → resfo_utilities-0.0.2}/docs/source/conf.py +0 -0
  21. {resfo_utilities-0.0.1 → resfo_utilities-0.0.2}/docs/source/glossary.rst +0 -0
  22. {resfo_utilities-0.0.1 → resfo_utilities-0.0.2}/docs/source/index.rst +0 -0
  23. {resfo_utilities-0.0.1 → resfo_utilities-0.0.2}/pyproject.toml +0 -0
  24. {resfo_utilities-0.0.1 → resfo_utilities-0.0.2}/setup.cfg +0 -0
  25. {resfo_utilities-0.0.1 → resfo_utilities-0.0.2}/src/resfo_utilities/__init__.py +0 -0
  26. {resfo_utilities-0.0.1 → resfo_utilities-0.0.2}/src/resfo_utilities.egg-info/SOURCES.txt +0 -0
  27. {resfo_utilities-0.0.1 → resfo_utilities-0.0.2}/src/resfo_utilities.egg-info/dependency_links.txt +0 -0
  28. {resfo_utilities-0.0.1 → resfo_utilities-0.0.2}/src/resfo_utilities.egg-info/requires.txt +0 -0
  29. {resfo_utilities-0.0.1 → resfo_utilities-0.0.2}/src/resfo_utilities.egg-info/top_level.txt +0 -0
  30. {resfo_utilities-0.0.1 → resfo_utilities-0.0.2}/tests/__init__.py +0 -0
  31. {resfo_utilities-0.0.1 → resfo_utilities-0.0.2}/tests/conftest.py +0 -0
  32. {resfo_utilities-0.0.1 → resfo_utilities-0.0.2}/tests/integration/__init__.py +0 -0
  33. {resfo_utilities-0.0.1 → resfo_utilities-0.0.2}/tests/integration/conftest.py +0 -0
  34. {resfo_utilities-0.0.1 → resfo_utilities-0.0.2}/tests/integration/test_grid.py +0 -0
  35. {resfo_utilities-0.0.1 → resfo_utilities-0.0.2}/tests/performance/__init__.py +0 -0
  36. {resfo_utilities-0.0.1 → resfo_utilities-0.0.2}/tests/performance/test_find_cell_performance.py +0 -0
  37. {resfo_utilities-0.0.1 → resfo_utilities-0.0.2}/tests/unit/__init__.py +0 -0
  38. {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.1
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>
@@ -440,7 +440,7 @@ class CornerpointGrid:
440
440
  [1, 3, 7],
441
441
  [1, 5, 7],
442
442
  [2, 3, 7],
443
- [2, 3, 6],
443
+ [2, 6, 7],
444
444
  ]
445
445
  ),
446
446
  )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: resfo-utilities
3
- Version: 0.0.1
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