fmu-sumo 2.3.4__py3-none-any.whl → 2.3.5__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.
- fmu/sumo/explorer/_version.py +2 -2
- fmu/sumo/explorer/objects/_search_context.py +16 -0
- {fmu_sumo-2.3.4.dist-info → fmu_sumo-2.3.5.dist-info}/METADATA +1 -1
- {fmu_sumo-2.3.4.dist-info → fmu_sumo-2.3.5.dist-info}/RECORD +7 -7
- {fmu_sumo-2.3.4.dist-info → fmu_sumo-2.3.5.dist-info}/LICENSE +0 -0
- {fmu_sumo-2.3.4.dist-info → fmu_sumo-2.3.5.dist-info}/WHEEL +0 -0
- {fmu_sumo-2.3.4.dist-info → fmu_sumo-2.3.5.dist-info}/top_level.txt +0 -0
fmu/sumo/explorer/_version.py
CHANGED
|
@@ -500,6 +500,22 @@ class SearchContext:
|
|
|
500
500
|
uuid = self._hits[index]
|
|
501
501
|
return await self.get_object_async(uuid)
|
|
502
502
|
|
|
503
|
+
@property
|
|
504
|
+
def single(self):
|
|
505
|
+
"""Verifies that SearchContext contains exactly one object,
|
|
506
|
+
and returns it.
|
|
507
|
+
"""
|
|
508
|
+
assert len(self) == 1
|
|
509
|
+
return self[0]
|
|
510
|
+
|
|
511
|
+
@property
|
|
512
|
+
async def single_async(self):
|
|
513
|
+
"""Verifies that SearchContext contains exactly one object,
|
|
514
|
+
and returns it.
|
|
515
|
+
"""
|
|
516
|
+
assert await self.length_async() == 1
|
|
517
|
+
return await self.getitem_async(0)
|
|
518
|
+
|
|
503
519
|
def select(self, sel):
|
|
504
520
|
"""Specify what should be returned from elasticsearch.
|
|
505
521
|
Has the side effect of clearing the lru cache.
|
|
@@ -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=
|
|
4
|
+
fmu/sumo/explorer/_version.py,sha256=yuw-MeUgld_ZQvHY-ySzAKeJ1b7eRT6gVg14nwqZJYY,511
|
|
5
5
|
fmu/sumo/explorer/cache.py,sha256=uvz8TciwBnDEwJIHa9wneC0WVWuzhUqyF3dzk4kvGNk,1037
|
|
6
6
|
fmu/sumo/explorer/explorer.py,sha256=0dSUGG2-4yOYGXRWC5Ubrdjd-hIEEgRxJlMvvIAYom0,2806
|
|
7
7
|
fmu/sumo/explorer/filters.py,sha256=NVTWbjL-dIHQZeWcR3Orgx6f0WHPpThSPxmxZo5tvfM,812
|
|
@@ -10,7 +10,7 @@ fmu/sumo/explorer/objects/__init__.py,sha256=2XqF0abZI1T7I_Fjlhvs4_vjwid_3HUsqdx
|
|
|
10
10
|
fmu/sumo/explorer/objects/_child.py,sha256=12qVVsTHg8Z_2SAxXpdIpQGwgeOiOKxWzPMCGZ3ZEtM,3104
|
|
11
11
|
fmu/sumo/explorer/objects/_document.py,sha256=wgRA18_68RxMFoQly4UowVIOrZqETithms9zZrqXTLw,1418
|
|
12
12
|
fmu/sumo/explorer/objects/_metrics.py,sha256=q6CSeCjiN1SjNx4G32Lod7Slnflsu3aoJIpwm_VMIhQ,3954
|
|
13
|
-
fmu/sumo/explorer/objects/_search_context.py,sha256=
|
|
13
|
+
fmu/sumo/explorer/objects/_search_context.py,sha256=vZbviagYGDPN-p9irq5efkiM8tOL1Z80D0u9DNiJQdQ,50087
|
|
14
14
|
fmu/sumo/explorer/objects/case.py,sha256=hA_9BqTG-ELqKrr1G2-kwx3nY0oVubcVMLaGBfAb3Qw,3545
|
|
15
15
|
fmu/sumo/explorer/objects/cases.py,sha256=L2LQieRTCJeNXRvXceHz9088nRO9gvKuRpsNpLI7Gnw,552
|
|
16
16
|
fmu/sumo/explorer/objects/cpgrid.py,sha256=Va1M_rgHYdQfPFKFJvfDQhRcSZ_PnniCSI6uweaG3_s,2550
|
|
@@ -25,8 +25,8 @@ fmu/sumo/explorer/objects/realizations.py,sha256=QnmrswpV34-AM05M6DP4BrD0vS3QKzP
|
|
|
25
25
|
fmu/sumo/explorer/objects/surface.py,sha256=8SVYvCtpKISGd3gY_jIkTgTd_yTWIU8xiW9lcyTiMKU,1652
|
|
26
26
|
fmu/sumo/explorer/objects/table.py,sha256=fRit1cWfCLqwZwLHK26D-qFT64uCYVjlVhDyXHWhO40,4925
|
|
27
27
|
fmu/sumo/explorer/objects/table_aggregated.py,sha256=vq2EcR36JTcQsyCeyiMgigJMDFDQfVrlTZe2LdXrDFo,3794
|
|
28
|
-
fmu_sumo-2.3.
|
|
29
|
-
fmu_sumo-2.3.
|
|
30
|
-
fmu_sumo-2.3.
|
|
31
|
-
fmu_sumo-2.3.
|
|
32
|
-
fmu_sumo-2.3.
|
|
28
|
+
fmu_sumo-2.3.5.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
29
|
+
fmu_sumo-2.3.5.dist-info/METADATA,sha256=mWm6YzPROFb_s1HmVFPZOXXyRjepLrnXhSzI5grLhrg,14758
|
|
30
|
+
fmu_sumo-2.3.5.dist-info/WHEEL,sha256=52BFRY2Up02UkjOa29eZOS2VxUrpPORXg1pkohGGUS8,91
|
|
31
|
+
fmu_sumo-2.3.5.dist-info/top_level.txt,sha256=Z-FIY3pxn0UK2Wxi9IJ7fKoLSraaxuNGi1eokiE0ShM,4
|
|
32
|
+
fmu_sumo-2.3.5.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|