fmu-sumo 2.3.9__py3-none-any.whl → 2.4.0__py3-none-any.whl

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.
@@ -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
@@ -1,7 +1,7 @@
1
1
  fmu/__init__.py,sha256=ftS-xRPSH-vU7fIHlnZQaCTWbNvs4owJivNW65kzsIM,85
2
2
  fmu/sumo/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
3
  fmu/sumo/explorer/__init__.py,sha256=Bc1wd1lQO3HP3tsVyPbqaesf2boZwGdtookWp8lmG-k,317
4
- fmu/sumo/explorer/_version.py,sha256=xD7sq7tXCC-QKVs2SPi2bsTgQhH6dVLkP6dvZaxMKcA,511
4
+ fmu/sumo/explorer/_version.py,sha256=KyHVhKcn4Ob8_JP09Buz8x5uB4b7RJZLl3FBlZ8sWSY,511
5
5
  fmu/sumo/explorer/cache.py,sha256=uvz8TciwBnDEwJIHa9wneC0WVWuzhUqyF3dzk4kvGNk,1037
6
6
  fmu/sumo/explorer/explorer.py,sha256=_3nUTO1E_nf6jqpivjgjKcX6rX1fx_mIG76YOM8xb-8,2931
7
7
  fmu/sumo/explorer/filters.py,sha256=_t2PmHeTY9XiBvQeEGM-BpudWUaxIfyUSdNyG70xfRU,875
@@ -12,22 +12,22 @@ fmu/sumo/explorer/objects/_document.py,sha256=uPAkNzcOk8U4LCtXthWkm7kfU9W4HYHrrq
12
12
  fmu/sumo/explorer/objects/_metrics.py,sha256=q6CSeCjiN1SjNx4G32Lod7Slnflsu3aoJIpwm_VMIhQ,3954
13
13
  fmu/sumo/explorer/objects/_search_context.py,sha256=qCejfIAnLNgGHhqvkhKK8T1JlK9GhV3rMqHpZXGz5z4,62554
14
14
  fmu/sumo/explorer/objects/case.py,sha256=fKp7X43ETLE1RaH3rMYxZiIuduRmf0JSnJ5gRoUgNPE,3813
15
- fmu/sumo/explorer/objects/cases.py,sha256=dxf3mEfx7mkgUyJaStbF2mWEwqEicfGvoi1MjD_t0As,658
15
+ fmu/sumo/explorer/objects/cases.py,sha256=i2bnvk7NWIkzbdWMs3BXU7TCqD5tH2r7pg1m1QXUj3o,561
16
16
  fmu/sumo/explorer/objects/cpgrid.py,sha256=nuRgZ6FVEOPZT1ibd-rJhlbYYZ6BuUxXZPzovcH0kVc,2548
17
17
  fmu/sumo/explorer/objects/cpgrid_property.py,sha256=PqqR05oKKKiTTG0iDO9V6TADdHY7VUsLHjai6SqahVo,2694
18
18
  fmu/sumo/explorer/objects/cube.py,sha256=6pJLDajex-mblkt9YRZxtcK1XHcRZ8mlPPqJ-yDGEbA,1948
19
19
  fmu/sumo/explorer/objects/dictionary.py,sha256=9Nt8Br7H4TgXO6qc46HtV1vB40LsEQb6WjWYDT-Ve0g,1191
20
20
  fmu/sumo/explorer/objects/ensemble.py,sha256=PqHUKMxIyT8pMVtPjvgUNS5P3gTeDYI52CqFGB56HUA,2009
21
- fmu/sumo/explorer/objects/ensembles.py,sha256=CKQ7i9LugXRC8nmmvj9WbbfwlNeixbsphi1oDGTtyPk,2230
21
+ fmu/sumo/explorer/objects/ensembles.py,sha256=Z20a9Vlx-P9Z484ikL_0X_xm5pudVjghmB0tq-_smwE,1718
22
22
  fmu/sumo/explorer/objects/iteration.py,sha256=ASZXjsxASEoVgbS-ZNpBNm3qKr1pPG0v7CAlFyiYOk4,2024
23
- fmu/sumo/explorer/objects/iterations.py,sha256=AdqNaJztbDiSYm4aL6Jrp0K8Pnmg_-tEz8Kw0RocRVY,1841
23
+ fmu/sumo/explorer/objects/iterations.py,sha256=VzoOQSnqVRXJDCPe9nJCWNtPyVtJEraZPTJsPwXF_j4,1726
24
24
  fmu/sumo/explorer/objects/polygons.py,sha256=k5BKuXHsLxzhMR5KId6Fly4FNygTOcShFCCMXvhjWg4,1187
25
25
  fmu/sumo/explorer/objects/realization.py,sha256=Th3zr_nT2I1HYHkBojOAKnf_RSIPc-TiDtW0X39eMRw,2259
26
- fmu/sumo/explorer/objects/realizations.py,sha256=t_4ACL-whAhaglIfh0m8vOsbluWSYO5I9bg0rt9erb0,1679
26
+ fmu/sumo/explorer/objects/realizations.py,sha256=4agtQFJ5pxLyWMeIzdJbkBMc8__Md-tZOj8Un4ol22c,1562
27
27
  fmu/sumo/explorer/objects/surface.py,sha256=zHBtjLCIfkRHBv39OeJjA9lq3puLTfTII6TndZTtxVI,1627
28
28
  fmu/sumo/explorer/objects/table.py,sha256=vLor3YTddHkDWZSMyWPQsddFNQ2_VXE_O-stmPIWIaQ,4900
29
- fmu_sumo-2.3.9.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
30
- fmu_sumo-2.3.9.dist-info/METADATA,sha256=4jJRAWxT1gJVIwUvZ60Cu633KU98N-I56Axtn6_zZdU,14780
31
- fmu_sumo-2.3.9.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
32
- fmu_sumo-2.3.9.dist-info/top_level.txt,sha256=Z-FIY3pxn0UK2Wxi9IJ7fKoLSraaxuNGi1eokiE0ShM,4
33
- fmu_sumo-2.3.9.dist-info/RECORD,,
29
+ fmu_sumo-2.4.0.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
30
+ fmu_sumo-2.4.0.dist-info/METADATA,sha256=zLtURJg7mo4uO76-hOegZ91uzPE4DXzMi3iuTv4vHn0,14780
31
+ fmu_sumo-2.4.0.dist-info/WHEEL,sha256=pxyMxgL8-pra_rKaQ4drOZAegBVuX-G_4nRHjjgWbmo,91
32
+ fmu_sumo-2.4.0.dist-info/top_level.txt,sha256=Z-FIY3pxn0UK2Wxi9IJ7fKoLSraaxuNGi1eokiE0ShM,4
33
+ fmu_sumo-2.4.0.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (78.1.0)
2
+ Generator: setuptools (79.0.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5