fmu-sumo 2.4.5__tar.gz → 2.4.6__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.
Files changed (66) hide show
  1. {fmu_sumo-2.4.5 → fmu_sumo-2.4.6}/.github/workflows/build_docs.yaml +3 -0
  2. {fmu_sumo-2.4.5 → fmu_sumo-2.4.6}/.github/workflows/check_formatting.yml +3 -0
  3. {fmu_sumo-2.4.5 → fmu_sumo-2.4.6}/PKG-INFO +1 -1
  4. {fmu_sumo-2.4.5 → fmu_sumo-2.4.6}/src/fmu/sumo/explorer/_version.py +2 -2
  5. {fmu_sumo-2.4.5 → fmu_sumo-2.4.6}/src/fmu/sumo/explorer/objects/_search_context.py +13 -9
  6. {fmu_sumo-2.4.5 → fmu_sumo-2.4.6}/src/fmu_sumo.egg-info/PKG-INFO +1 -1
  7. {fmu_sumo-2.4.5 → fmu_sumo-2.4.6}/.github/pull_request_template.md +0 -0
  8. {fmu_sumo-2.4.5 → fmu_sumo-2.4.6}/.github/workflows/publish_release.yaml +0 -0
  9. {fmu_sumo-2.4.5 → fmu_sumo-2.4.6}/.github/workflows/run_tests.yaml +0 -0
  10. {fmu_sumo-2.4.5 → fmu_sumo-2.4.6}/.gitignore +0 -0
  11. {fmu_sumo-2.4.5 → fmu_sumo-2.4.6}/.pre-commit-config.yaml +0 -0
  12. {fmu_sumo-2.4.5 → fmu_sumo-2.4.6}/.readthedocs.yml +0 -0
  13. {fmu_sumo-2.4.5 → fmu_sumo-2.4.6}/CONTRIBUTING.md +0 -0
  14. {fmu_sumo-2.4.5 → fmu_sumo-2.4.6}/LICENSE +0 -0
  15. {fmu_sumo-2.4.5 → fmu_sumo-2.4.6}/README.md +0 -0
  16. {fmu_sumo-2.4.5 → fmu_sumo-2.4.6}/SECURITY.md +0 -0
  17. {fmu_sumo-2.4.5 → fmu_sumo-2.4.6}/docs/_static/equinor-logo.png +0 -0
  18. {fmu_sumo-2.4.5 → fmu_sumo-2.4.6}/docs/_static/equinor-logo2.jpg +0 -0
  19. {fmu_sumo-2.4.5 → fmu_sumo-2.4.6}/docs/_static/equinor_logo.jpg +0 -0
  20. {fmu_sumo-2.4.5 → fmu_sumo-2.4.6}/docs/_static/equinor_logo_only.jpg +0 -0
  21. {fmu_sumo-2.4.5 → fmu_sumo-2.4.6}/docs/_templates/layout.html +0 -0
  22. {fmu_sumo-2.4.5 → fmu_sumo-2.4.6}/docs/conf.py +0 -0
  23. {fmu_sumo-2.4.5 → fmu_sumo-2.4.6}/docs/explorer.rst +0 -0
  24. {fmu_sumo-2.4.5 → fmu_sumo-2.4.6}/docs/index.rst +0 -0
  25. {fmu_sumo-2.4.5 → fmu_sumo-2.4.6}/examples/explorer.ipynb +0 -0
  26. {fmu_sumo-2.4.5 → fmu_sumo-2.4.6}/examples/explorer2.ipynb +0 -0
  27. {fmu_sumo-2.4.5 → fmu_sumo-2.4.6}/examples/grids-and-properties.ipynb +0 -0
  28. {fmu_sumo-2.4.5 → fmu_sumo-2.4.6}/examples/metrics.ipynb +0 -0
  29. {fmu_sumo-2.4.5 → fmu_sumo-2.4.6}/examples/table-aggregation.ipynb +0 -0
  30. {fmu_sumo-2.4.5 → fmu_sumo-2.4.6}/examples/tables.ipynb +0 -0
  31. {fmu_sumo-2.4.5 → fmu_sumo-2.4.6}/pyproject.toml +0 -0
  32. {fmu_sumo-2.4.5 → fmu_sumo-2.4.6}/setup.cfg +0 -0
  33. {fmu_sumo-2.4.5 → fmu_sumo-2.4.6}/src/fmu/__init__.py +0 -0
  34. {fmu_sumo-2.4.5 → fmu_sumo-2.4.6}/src/fmu/sumo/__init__.py +0 -0
  35. {fmu_sumo-2.4.5 → fmu_sumo-2.4.6}/src/fmu/sumo/explorer/__init__.py +0 -0
  36. {fmu_sumo-2.4.5 → fmu_sumo-2.4.6}/src/fmu/sumo/explorer/cache.py +0 -0
  37. {fmu_sumo-2.4.5 → fmu_sumo-2.4.6}/src/fmu/sumo/explorer/explorer.py +0 -0
  38. {fmu_sumo-2.4.5 → fmu_sumo-2.4.6}/src/fmu/sumo/explorer/filters.py +0 -0
  39. {fmu_sumo-2.4.5 → fmu_sumo-2.4.6}/src/fmu/sumo/explorer/objects/__init__.py +0 -0
  40. {fmu_sumo-2.4.5 → fmu_sumo-2.4.6}/src/fmu/sumo/explorer/objects/_child.py +0 -0
  41. {fmu_sumo-2.4.5 → fmu_sumo-2.4.6}/src/fmu/sumo/explorer/objects/_document.py +0 -0
  42. {fmu_sumo-2.4.5 → fmu_sumo-2.4.6}/src/fmu/sumo/explorer/objects/_metrics.py +0 -0
  43. {fmu_sumo-2.4.5 → fmu_sumo-2.4.6}/src/fmu/sumo/explorer/objects/case.py +0 -0
  44. {fmu_sumo-2.4.5 → fmu_sumo-2.4.6}/src/fmu/sumo/explorer/objects/cases.py +0 -0
  45. {fmu_sumo-2.4.5 → fmu_sumo-2.4.6}/src/fmu/sumo/explorer/objects/cpgrid.py +0 -0
  46. {fmu_sumo-2.4.5 → fmu_sumo-2.4.6}/src/fmu/sumo/explorer/objects/cpgrid_property.py +0 -0
  47. {fmu_sumo-2.4.5 → fmu_sumo-2.4.6}/src/fmu/sumo/explorer/objects/cube.py +0 -0
  48. {fmu_sumo-2.4.5 → fmu_sumo-2.4.6}/src/fmu/sumo/explorer/objects/dictionary.py +0 -0
  49. {fmu_sumo-2.4.5 → fmu_sumo-2.4.6}/src/fmu/sumo/explorer/objects/ensemble.py +0 -0
  50. {fmu_sumo-2.4.5 → fmu_sumo-2.4.6}/src/fmu/sumo/explorer/objects/ensembles.py +0 -0
  51. {fmu_sumo-2.4.5 → fmu_sumo-2.4.6}/src/fmu/sumo/explorer/objects/iteration.py +0 -0
  52. {fmu_sumo-2.4.5 → fmu_sumo-2.4.6}/src/fmu/sumo/explorer/objects/iterations.py +0 -0
  53. {fmu_sumo-2.4.5 → fmu_sumo-2.4.6}/src/fmu/sumo/explorer/objects/polygons.py +0 -0
  54. {fmu_sumo-2.4.5 → fmu_sumo-2.4.6}/src/fmu/sumo/explorer/objects/realization.py +0 -0
  55. {fmu_sumo-2.4.5 → fmu_sumo-2.4.6}/src/fmu/sumo/explorer/objects/realizations.py +0 -0
  56. {fmu_sumo-2.4.5 → fmu_sumo-2.4.6}/src/fmu/sumo/explorer/objects/surface.py +0 -0
  57. {fmu_sumo-2.4.5 → fmu_sumo-2.4.6}/src/fmu/sumo/explorer/objects/table.py +0 -0
  58. {fmu_sumo-2.4.5 → fmu_sumo-2.4.6}/src/fmu/sumo/explorer/timefilter.py +0 -0
  59. {fmu_sumo-2.4.5 → fmu_sumo-2.4.6}/src/fmu_sumo.egg-info/SOURCES.txt +0 -0
  60. {fmu_sumo-2.4.5 → fmu_sumo-2.4.6}/src/fmu_sumo.egg-info/dependency_links.txt +0 -0
  61. {fmu_sumo-2.4.5 → fmu_sumo-2.4.6}/src/fmu_sumo.egg-info/requires.txt +0 -0
  62. {fmu_sumo-2.4.5 → fmu_sumo-2.4.6}/src/fmu_sumo.egg-info/top_level.txt +0 -0
  63. {fmu_sumo-2.4.5 → fmu_sumo-2.4.6}/tests/conftest.py +0 -0
  64. {fmu_sumo-2.4.5 → fmu_sumo-2.4.6}/tests/context.py +0 -0
  65. {fmu_sumo-2.4.5 → fmu_sumo-2.4.6}/tests/test_explorer.py +0 -0
  66. {fmu_sumo-2.4.5 → fmu_sumo-2.4.6}/tests/test_objects_table.py +0 -0
@@ -11,6 +11,9 @@ on:
11
11
  jobs:
12
12
  build_pywheels:
13
13
  name: Build docs with Python ${{ matrix.python-version }} on ${{ matrix.os }}
14
+ permissions:
15
+ contents: read
16
+ id-token: write
14
17
  runs-on: ${{ matrix.os }}
15
18
  strategy:
16
19
  matrix:
@@ -7,6 +7,9 @@ on:
7
7
  jobs:
8
8
  ruff-check:
9
9
  name: Run ruff lint and format checks
10
+ permissions:
11
+ contents: read
12
+ id-token: write
10
13
  runs-on: ubuntu-latest
11
14
 
12
15
  steps:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: fmu-sumo
3
- Version: 2.4.5
3
+ Version: 2.4.6
4
4
  Summary: Python package for interacting with Sumo in an FMU setting
5
5
  Author: Equinor
6
6
  License: Apache License
@@ -17,5 +17,5 @@ __version__: str
17
17
  __version_tuple__: VERSION_TUPLE
18
18
  version_tuple: VERSION_TUPLE
19
19
 
20
- __version__ = version = '2.4.5'
21
- __version_tuple__ = version_tuple = (2, 4, 5)
20
+ __version__ = version = '2.4.6'
21
+ __version_tuple__ = version_tuple = (2, 4, 6)
@@ -1553,7 +1553,11 @@ class SearchContext:
1553
1553
  if (
1554
1554
  ("sum_other_doc_count" in v)
1555
1555
  and (v["sum_other_doc_count"] > 0)
1556
- or v["buckets"][0]["doc_count"] != tot_hits
1556
+ or (
1557
+ "buckets" in v
1558
+ and len(v["buckets"]) > 0
1559
+ and v["buckets"][0]["doc_count"] != tot_hits
1560
+ )
1557
1561
  )
1558
1562
  ]
1559
1563
  if len(conflicts) > 0:
@@ -1612,12 +1616,11 @@ class SearchContext:
1612
1616
  return self._to_sumo(res)
1613
1617
 
1614
1618
  def aggregate(self, columns=None, operation=None) -> objects.Child:
1615
- if len(self.hidden) > 0:
1616
- return self.hidden._aggregate(columns=columns, operation=operation)
1619
+ sc = self.filter(realization=True, column=columns)
1620
+ if len(sc.hidden) > 0:
1621
+ return sc.hidden._aggregate(columns=columns, operation=operation)
1617
1622
  else:
1618
- return self.visible._aggregate(
1619
- columns=columns, operation=operation
1620
- )
1623
+ return sc.visible._aggregate(columns=columns, operation=operation)
1621
1624
 
1622
1625
  async def _verify_aggregation_operation_async(
1623
1626
  self, columns, operation
@@ -1657,13 +1660,14 @@ class SearchContext:
1657
1660
  async def aggregate_async(
1658
1661
  self, columns=None, operation=None
1659
1662
  ) -> objects.Child:
1660
- length_hidden = await self.hidden.length_async()
1663
+ sc = self.filter(realization=True, column=columns)
1664
+ length_hidden = await sc.hidden.length_async()
1661
1665
  if length_hidden > 0:
1662
- return await self.hidden._aggregate_async(
1666
+ return await sc.hidden._aggregate_async(
1663
1667
  columns=columns, operation=operation
1664
1668
  )
1665
1669
  else:
1666
- return await self.visible._aggregate_async(
1670
+ return await sc.visible._aggregate_async(
1667
1671
  columns=columns, operation=operation
1668
1672
  )
1669
1673
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: fmu-sumo
3
- Version: 2.4.5
3
+ Version: 2.4.6
4
4
  Summary: Python package for interacting with Sumo in an FMU setting
5
5
  Author: Equinor
6
6
  License: Apache License
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