fmu-sumo 2.3.9__tar.gz → 2.4.1__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.3.9 → fmu_sumo-2.4.1}/PKG-INFO +1 -1
  2. {fmu_sumo-2.3.9 → fmu_sumo-2.4.1}/src/fmu/sumo/explorer/_version.py +2 -2
  3. {fmu_sumo-2.3.9 → fmu_sumo-2.4.1}/src/fmu/sumo/explorer/objects/_search_context.py +6 -3
  4. {fmu_sumo-2.3.9 → fmu_sumo-2.4.1}/src/fmu/sumo/explorer/objects/cases.py +1 -3
  5. {fmu_sumo-2.3.9 → fmu_sumo-2.4.1}/src/fmu/sumo/explorer/objects/ensembles.py +2 -16
  6. {fmu_sumo-2.3.9 → fmu_sumo-2.4.1}/src/fmu/sumo/explorer/objects/iterations.py +1 -4
  7. {fmu_sumo-2.3.9 → fmu_sumo-2.4.1}/src/fmu/sumo/explorer/objects/realizations.py +1 -4
  8. {fmu_sumo-2.3.9 → fmu_sumo-2.4.1}/src/fmu_sumo.egg-info/PKG-INFO +1 -1
  9. {fmu_sumo-2.3.9 → fmu_sumo-2.4.1}/.github/pull_request_template.md +0 -0
  10. {fmu_sumo-2.3.9 → fmu_sumo-2.4.1}/.github/workflows/build_docs.yaml +0 -0
  11. {fmu_sumo-2.3.9 → fmu_sumo-2.4.1}/.github/workflows/check_formatting.yml +0 -0
  12. {fmu_sumo-2.3.9 → fmu_sumo-2.4.1}/.github/workflows/publish_release.yaml +0 -0
  13. {fmu_sumo-2.3.9 → fmu_sumo-2.4.1}/.github/workflows/run_tests.yaml +0 -0
  14. {fmu_sumo-2.3.9 → fmu_sumo-2.4.1}/.gitignore +0 -0
  15. {fmu_sumo-2.3.9 → fmu_sumo-2.4.1}/.pre-commit-config.yaml +0 -0
  16. {fmu_sumo-2.3.9 → fmu_sumo-2.4.1}/.readthedocs.yml +0 -0
  17. {fmu_sumo-2.3.9 → fmu_sumo-2.4.1}/CONTRIBUTING.md +0 -0
  18. {fmu_sumo-2.3.9 → fmu_sumo-2.4.1}/LICENSE +0 -0
  19. {fmu_sumo-2.3.9 → fmu_sumo-2.4.1}/README.md +0 -0
  20. {fmu_sumo-2.3.9 → fmu_sumo-2.4.1}/SECURITY.md +0 -0
  21. {fmu_sumo-2.3.9 → fmu_sumo-2.4.1}/docs/_static/equinor-logo.png +0 -0
  22. {fmu_sumo-2.3.9 → fmu_sumo-2.4.1}/docs/_static/equinor-logo2.jpg +0 -0
  23. {fmu_sumo-2.3.9 → fmu_sumo-2.4.1}/docs/_static/equinor_logo.jpg +0 -0
  24. {fmu_sumo-2.3.9 → fmu_sumo-2.4.1}/docs/_static/equinor_logo_only.jpg +0 -0
  25. {fmu_sumo-2.3.9 → fmu_sumo-2.4.1}/docs/_templates/layout.html +0 -0
  26. {fmu_sumo-2.3.9 → fmu_sumo-2.4.1}/docs/conf.py +0 -0
  27. {fmu_sumo-2.3.9 → fmu_sumo-2.4.1}/docs/explorer.rst +0 -0
  28. {fmu_sumo-2.3.9 → fmu_sumo-2.4.1}/docs/index.rst +0 -0
  29. {fmu_sumo-2.3.9 → fmu_sumo-2.4.1}/examples/explorer.ipynb +0 -0
  30. {fmu_sumo-2.3.9 → fmu_sumo-2.4.1}/examples/explorer2.ipynb +0 -0
  31. {fmu_sumo-2.3.9 → fmu_sumo-2.4.1}/examples/grids-and-properties.ipynb +0 -0
  32. {fmu_sumo-2.3.9 → fmu_sumo-2.4.1}/examples/metrics.ipynb +0 -0
  33. {fmu_sumo-2.3.9 → fmu_sumo-2.4.1}/examples/table-aggregation.ipynb +0 -0
  34. {fmu_sumo-2.3.9 → fmu_sumo-2.4.1}/examples/tables.ipynb +0 -0
  35. {fmu_sumo-2.3.9 → fmu_sumo-2.4.1}/pyproject.toml +0 -0
  36. {fmu_sumo-2.3.9 → fmu_sumo-2.4.1}/setup.cfg +0 -0
  37. {fmu_sumo-2.3.9 → fmu_sumo-2.4.1}/src/fmu/__init__.py +0 -0
  38. {fmu_sumo-2.3.9 → fmu_sumo-2.4.1}/src/fmu/sumo/__init__.py +0 -0
  39. {fmu_sumo-2.3.9 → fmu_sumo-2.4.1}/src/fmu/sumo/explorer/__init__.py +0 -0
  40. {fmu_sumo-2.3.9 → fmu_sumo-2.4.1}/src/fmu/sumo/explorer/cache.py +0 -0
  41. {fmu_sumo-2.3.9 → fmu_sumo-2.4.1}/src/fmu/sumo/explorer/explorer.py +0 -0
  42. {fmu_sumo-2.3.9 → fmu_sumo-2.4.1}/src/fmu/sumo/explorer/filters.py +0 -0
  43. {fmu_sumo-2.3.9 → fmu_sumo-2.4.1}/src/fmu/sumo/explorer/objects/__init__.py +0 -0
  44. {fmu_sumo-2.3.9 → fmu_sumo-2.4.1}/src/fmu/sumo/explorer/objects/_child.py +0 -0
  45. {fmu_sumo-2.3.9 → fmu_sumo-2.4.1}/src/fmu/sumo/explorer/objects/_document.py +0 -0
  46. {fmu_sumo-2.3.9 → fmu_sumo-2.4.1}/src/fmu/sumo/explorer/objects/_metrics.py +0 -0
  47. {fmu_sumo-2.3.9 → fmu_sumo-2.4.1}/src/fmu/sumo/explorer/objects/case.py +0 -0
  48. {fmu_sumo-2.3.9 → fmu_sumo-2.4.1}/src/fmu/sumo/explorer/objects/cpgrid.py +0 -0
  49. {fmu_sumo-2.3.9 → fmu_sumo-2.4.1}/src/fmu/sumo/explorer/objects/cpgrid_property.py +0 -0
  50. {fmu_sumo-2.3.9 → fmu_sumo-2.4.1}/src/fmu/sumo/explorer/objects/cube.py +0 -0
  51. {fmu_sumo-2.3.9 → fmu_sumo-2.4.1}/src/fmu/sumo/explorer/objects/dictionary.py +0 -0
  52. {fmu_sumo-2.3.9 → fmu_sumo-2.4.1}/src/fmu/sumo/explorer/objects/ensemble.py +0 -0
  53. {fmu_sumo-2.3.9 → fmu_sumo-2.4.1}/src/fmu/sumo/explorer/objects/iteration.py +0 -0
  54. {fmu_sumo-2.3.9 → fmu_sumo-2.4.1}/src/fmu/sumo/explorer/objects/polygons.py +0 -0
  55. {fmu_sumo-2.3.9 → fmu_sumo-2.4.1}/src/fmu/sumo/explorer/objects/realization.py +0 -0
  56. {fmu_sumo-2.3.9 → fmu_sumo-2.4.1}/src/fmu/sumo/explorer/objects/surface.py +0 -0
  57. {fmu_sumo-2.3.9 → fmu_sumo-2.4.1}/src/fmu/sumo/explorer/objects/table.py +0 -0
  58. {fmu_sumo-2.3.9 → fmu_sumo-2.4.1}/src/fmu/sumo/explorer/timefilter.py +0 -0
  59. {fmu_sumo-2.3.9 → fmu_sumo-2.4.1}/src/fmu_sumo.egg-info/SOURCES.txt +0 -0
  60. {fmu_sumo-2.3.9 → fmu_sumo-2.4.1}/src/fmu_sumo.egg-info/dependency_links.txt +0 -0
  61. {fmu_sumo-2.3.9 → fmu_sumo-2.4.1}/src/fmu_sumo.egg-info/requires.txt +0 -0
  62. {fmu_sumo-2.3.9 → fmu_sumo-2.4.1}/src/fmu_sumo.egg-info/top_level.txt +0 -0
  63. {fmu_sumo-2.3.9 → fmu_sumo-2.4.1}/tests/conftest.py +0 -0
  64. {fmu_sumo-2.3.9 → fmu_sumo-2.4.1}/tests/context.py +0 -0
  65. {fmu_sumo-2.3.9 → fmu_sumo-2.4.1}/tests/test_explorer.py +0 -0
  66. {fmu_sumo-2.3.9 → fmu_sumo-2.4.1}/tests/test_objects_table.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: fmu-sumo
3
- Version: 2.3.9
3
+ Version: 2.4.1
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.3.9'
21
- __version_tuple__ = version_tuple = (2, 3, 9)
20
+ __version__ = version = '2.4.1'
21
+ __version_tuple__ = version_tuple = (2, 4, 1)
@@ -1690,7 +1690,7 @@ class SearchContext:
1690
1690
  ).realizationids
1691
1691
  if set(reals) == set(
1692
1692
  agg.metadata["fmu"]["aggregation"]["realization_ids"]
1693
- ):
1693
+ ) and len(reals) == len(self.filter(realization=True)):
1694
1694
  return agg
1695
1695
  # ELSE
1696
1696
  return self.filter(realization=True).aggregate(
@@ -1714,8 +1714,11 @@ class SearchContext:
1714
1714
  realization=True,
1715
1715
  complex={"range": {"_sumo.timestamp": {"lt": ts}}},
1716
1716
  ).realizationids_async
1717
- if set(reals) == set(
1718
- agg.metadata["fmu"]["aggregation"]["realization_ids"]
1717
+ if (
1718
+ set(reals)
1719
+ == set(agg.metadata["fmu"]["aggregation"]["realization_ids"])
1720
+ and len(reals)
1721
+ == await self.filter(realization=True).length_async()
1719
1722
  ):
1720
1723
  return agg
1721
1724
  # ELSE
@@ -16,8 +16,6 @@ class Cases(SearchContext):
16
16
  return
17
17
 
18
18
  def filter(self, **kwargs):
19
- sc = SearchContext(
20
- self._sumo, must=[{"terms": {"fmu.case.uuid.keyword": self._hits}}]
21
- ).filter(**kwargs)
19
+ sc = super().filter(**kwargs)
22
20
  uuids = sc.get_field_values("fmu.case.uuid.keyword")
23
21
  return Cases(sc, uuids)
@@ -11,17 +11,6 @@ class Ensembles(SearchContext):
11
11
  self._hits = uuids
12
12
  return
13
13
 
14
- # def __str__(self) -> str:
15
- # length = len(self)
16
- # if length == 0:
17
- # return "None"
18
- # else:
19
- # preview = [self[i].metadata for i in range(min(5, length))]
20
- # return f"Data Preview:\n{json.dumps(preview, indent=4)}"
21
-
22
- # def __repr__(self) -> str:
23
- # return(f"<{self.__class__.__name__} {len(self)} objects of type ensemble>")
24
-
25
14
  @property
26
15
  def classes(self) -> List[str]:
27
16
  return ["ensemble"]
@@ -73,9 +62,6 @@ class Ensembles(SearchContext):
73
62
  return obj
74
63
 
75
64
  def filter(self, **kwargs):
76
- sc = SearchContext(
77
- self._sumo,
78
- must=[{"terms": {"fmu.ensemble.uuid.keyword": self._hits}}],
79
- ).filter(**kwargs)
80
- uuids = sc.get_field_values("fmu.iteration.uuid.keyword")
65
+ sc = super().filter(**kwargs)
66
+ uuids = sc.get_field_values("fmu.ensemble.uuid.keyword")
81
67
  return Ensembles(sc, uuids)
@@ -62,9 +62,6 @@ class Iterations(SearchContext):
62
62
  return obj
63
63
 
64
64
  def filter(self, **kwargs):
65
- sc = SearchContext(
66
- self._sumo,
67
- must=[{"terms": {"fmu.iteration.uuid.keyword": self._hits}}],
68
- ).filter(**kwargs)
65
+ sc = super().filter(**kwargs)
69
66
  uuids = sc.get_field_values("fmu.iteration.uuid.keyword")
70
67
  return Iterations(sc, uuids)
@@ -54,9 +54,6 @@ class Realizations(SearchContext):
54
54
  return obj
55
55
 
56
56
  def filter(self, **kwargs):
57
- sc = SearchContext(
58
- self._sumo,
59
- must=[{"terms": {"fmu.realization.uuid.keyword": self._hits}}],
60
- ).filter(**kwargs)
57
+ sc = super().filter(**kwargs)
61
58
  uuids = sc.get_field_values("fmu.realization.uuid.keyword")
62
59
  return Realizations(self, uuids)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: fmu-sumo
3
- Version: 2.3.9
3
+ Version: 2.4.1
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