fmu-sumo 2.3.9__tar.gz → 2.4.0__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.0}/PKG-INFO +1 -1
  2. {fmu_sumo-2.3.9 → fmu_sumo-2.4.0}/src/fmu/sumo/explorer/_version.py +2 -2
  3. {fmu_sumo-2.3.9 → fmu_sumo-2.4.0}/src/fmu/sumo/explorer/objects/cases.py +1 -3
  4. {fmu_sumo-2.3.9 → fmu_sumo-2.4.0}/src/fmu/sumo/explorer/objects/ensembles.py +2 -16
  5. {fmu_sumo-2.3.9 → fmu_sumo-2.4.0}/src/fmu/sumo/explorer/objects/iterations.py +1 -4
  6. {fmu_sumo-2.3.9 → fmu_sumo-2.4.0}/src/fmu/sumo/explorer/objects/realizations.py +1 -4
  7. {fmu_sumo-2.3.9 → fmu_sumo-2.4.0}/src/fmu_sumo.egg-info/PKG-INFO +1 -1
  8. {fmu_sumo-2.3.9 → fmu_sumo-2.4.0}/.github/pull_request_template.md +0 -0
  9. {fmu_sumo-2.3.9 → fmu_sumo-2.4.0}/.github/workflows/build_docs.yaml +0 -0
  10. {fmu_sumo-2.3.9 → fmu_sumo-2.4.0}/.github/workflows/check_formatting.yml +0 -0
  11. {fmu_sumo-2.3.9 → fmu_sumo-2.4.0}/.github/workflows/publish_release.yaml +0 -0
  12. {fmu_sumo-2.3.9 → fmu_sumo-2.4.0}/.github/workflows/run_tests.yaml +0 -0
  13. {fmu_sumo-2.3.9 → fmu_sumo-2.4.0}/.gitignore +0 -0
  14. {fmu_sumo-2.3.9 → fmu_sumo-2.4.0}/.pre-commit-config.yaml +0 -0
  15. {fmu_sumo-2.3.9 → fmu_sumo-2.4.0}/.readthedocs.yml +0 -0
  16. {fmu_sumo-2.3.9 → fmu_sumo-2.4.0}/CONTRIBUTING.md +0 -0
  17. {fmu_sumo-2.3.9 → fmu_sumo-2.4.0}/LICENSE +0 -0
  18. {fmu_sumo-2.3.9 → fmu_sumo-2.4.0}/README.md +0 -0
  19. {fmu_sumo-2.3.9 → fmu_sumo-2.4.0}/SECURITY.md +0 -0
  20. {fmu_sumo-2.3.9 → fmu_sumo-2.4.0}/docs/_static/equinor-logo.png +0 -0
  21. {fmu_sumo-2.3.9 → fmu_sumo-2.4.0}/docs/_static/equinor-logo2.jpg +0 -0
  22. {fmu_sumo-2.3.9 → fmu_sumo-2.4.0}/docs/_static/equinor_logo.jpg +0 -0
  23. {fmu_sumo-2.3.9 → fmu_sumo-2.4.0}/docs/_static/equinor_logo_only.jpg +0 -0
  24. {fmu_sumo-2.3.9 → fmu_sumo-2.4.0}/docs/_templates/layout.html +0 -0
  25. {fmu_sumo-2.3.9 → fmu_sumo-2.4.0}/docs/conf.py +0 -0
  26. {fmu_sumo-2.3.9 → fmu_sumo-2.4.0}/docs/explorer.rst +0 -0
  27. {fmu_sumo-2.3.9 → fmu_sumo-2.4.0}/docs/index.rst +0 -0
  28. {fmu_sumo-2.3.9 → fmu_sumo-2.4.0}/examples/explorer.ipynb +0 -0
  29. {fmu_sumo-2.3.9 → fmu_sumo-2.4.0}/examples/explorer2.ipynb +0 -0
  30. {fmu_sumo-2.3.9 → fmu_sumo-2.4.0}/examples/grids-and-properties.ipynb +0 -0
  31. {fmu_sumo-2.3.9 → fmu_sumo-2.4.0}/examples/metrics.ipynb +0 -0
  32. {fmu_sumo-2.3.9 → fmu_sumo-2.4.0}/examples/table-aggregation.ipynb +0 -0
  33. {fmu_sumo-2.3.9 → fmu_sumo-2.4.0}/examples/tables.ipynb +0 -0
  34. {fmu_sumo-2.3.9 → fmu_sumo-2.4.0}/pyproject.toml +0 -0
  35. {fmu_sumo-2.3.9 → fmu_sumo-2.4.0}/setup.cfg +0 -0
  36. {fmu_sumo-2.3.9 → fmu_sumo-2.4.0}/src/fmu/__init__.py +0 -0
  37. {fmu_sumo-2.3.9 → fmu_sumo-2.4.0}/src/fmu/sumo/__init__.py +0 -0
  38. {fmu_sumo-2.3.9 → fmu_sumo-2.4.0}/src/fmu/sumo/explorer/__init__.py +0 -0
  39. {fmu_sumo-2.3.9 → fmu_sumo-2.4.0}/src/fmu/sumo/explorer/cache.py +0 -0
  40. {fmu_sumo-2.3.9 → fmu_sumo-2.4.0}/src/fmu/sumo/explorer/explorer.py +0 -0
  41. {fmu_sumo-2.3.9 → fmu_sumo-2.4.0}/src/fmu/sumo/explorer/filters.py +0 -0
  42. {fmu_sumo-2.3.9 → fmu_sumo-2.4.0}/src/fmu/sumo/explorer/objects/__init__.py +0 -0
  43. {fmu_sumo-2.3.9 → fmu_sumo-2.4.0}/src/fmu/sumo/explorer/objects/_child.py +0 -0
  44. {fmu_sumo-2.3.9 → fmu_sumo-2.4.0}/src/fmu/sumo/explorer/objects/_document.py +0 -0
  45. {fmu_sumo-2.3.9 → fmu_sumo-2.4.0}/src/fmu/sumo/explorer/objects/_metrics.py +0 -0
  46. {fmu_sumo-2.3.9 → fmu_sumo-2.4.0}/src/fmu/sumo/explorer/objects/_search_context.py +0 -0
  47. {fmu_sumo-2.3.9 → fmu_sumo-2.4.0}/src/fmu/sumo/explorer/objects/case.py +0 -0
  48. {fmu_sumo-2.3.9 → fmu_sumo-2.4.0}/src/fmu/sumo/explorer/objects/cpgrid.py +0 -0
  49. {fmu_sumo-2.3.9 → fmu_sumo-2.4.0}/src/fmu/sumo/explorer/objects/cpgrid_property.py +0 -0
  50. {fmu_sumo-2.3.9 → fmu_sumo-2.4.0}/src/fmu/sumo/explorer/objects/cube.py +0 -0
  51. {fmu_sumo-2.3.9 → fmu_sumo-2.4.0}/src/fmu/sumo/explorer/objects/dictionary.py +0 -0
  52. {fmu_sumo-2.3.9 → fmu_sumo-2.4.0}/src/fmu/sumo/explorer/objects/ensemble.py +0 -0
  53. {fmu_sumo-2.3.9 → fmu_sumo-2.4.0}/src/fmu/sumo/explorer/objects/iteration.py +0 -0
  54. {fmu_sumo-2.3.9 → fmu_sumo-2.4.0}/src/fmu/sumo/explorer/objects/polygons.py +0 -0
  55. {fmu_sumo-2.3.9 → fmu_sumo-2.4.0}/src/fmu/sumo/explorer/objects/realization.py +0 -0
  56. {fmu_sumo-2.3.9 → fmu_sumo-2.4.0}/src/fmu/sumo/explorer/objects/surface.py +0 -0
  57. {fmu_sumo-2.3.9 → fmu_sumo-2.4.0}/src/fmu/sumo/explorer/objects/table.py +0 -0
  58. {fmu_sumo-2.3.9 → fmu_sumo-2.4.0}/src/fmu/sumo/explorer/timefilter.py +0 -0
  59. {fmu_sumo-2.3.9 → fmu_sumo-2.4.0}/src/fmu_sumo.egg-info/SOURCES.txt +0 -0
  60. {fmu_sumo-2.3.9 → fmu_sumo-2.4.0}/src/fmu_sumo.egg-info/dependency_links.txt +0 -0
  61. {fmu_sumo-2.3.9 → fmu_sumo-2.4.0}/src/fmu_sumo.egg-info/requires.txt +0 -0
  62. {fmu_sumo-2.3.9 → fmu_sumo-2.4.0}/src/fmu_sumo.egg-info/top_level.txt +0 -0
  63. {fmu_sumo-2.3.9 → fmu_sumo-2.4.0}/tests/conftest.py +0 -0
  64. {fmu_sumo-2.3.9 → fmu_sumo-2.4.0}/tests/context.py +0 -0
  65. {fmu_sumo-2.3.9 → fmu_sumo-2.4.0}/tests/test_explorer.py +0 -0
  66. {fmu_sumo-2.3.9 → fmu_sumo-2.4.0}/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.0
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.0'
21
+ __version_tuple__ = version_tuple = (2, 4, 0)
@@ -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.0
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