corva-worker-python 2.3.0__py3-none-any.whl → 2.3.2__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.
- {corva_worker_python-2.3.0.dist-info → corva_worker_python-2.3.2.dist-info}/METADATA +2 -2
- {corva_worker_python-2.3.0.dist-info → corva_worker_python-2.3.2.dist-info}/RECORD +5 -5
- worker/wellbore/model/drillstring_components.py +14 -9
- {corva_worker_python-2.3.0.dist-info → corva_worker_python-2.3.2.dist-info}/WHEEL +0 -0
- {corva_worker_python-2.3.0.dist-info → corva_worker_python-2.3.2.dist-info}/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: corva-worker-python
|
|
3
|
-
Version: 2.3.
|
|
3
|
+
Version: 2.3.2
|
|
4
4
|
Summary: SDK for interacting with Corva
|
|
5
5
|
Home-page: https://github.com/corva-ai/corva-worker-python
|
|
6
6
|
Author: Jordan Ambra <jordan.ambra@corva.ai>, Mohammadreza Kamyab <m.kamyab@corva.ai>
|
|
@@ -16,7 +16,7 @@ Classifier: Programming Language :: Python :: 3.14
|
|
|
16
16
|
Classifier: Topic :: Software Development :: Libraries
|
|
17
17
|
Requires-Python: >=3.13
|
|
18
18
|
Requires-Dist: numpy>=2.3.5
|
|
19
|
-
Requires-Dist: redis
|
|
19
|
+
Requires-Dist: redis<8,>=5.2.1
|
|
20
20
|
Requires-Dist: requests>=2.32.5
|
|
21
21
|
Requires-Dist: simplejson>=3.20.2
|
|
22
22
|
Requires-Dist: urllib3>=2.5.0
|
|
@@ -51,13 +51,13 @@ worker/wellbore/model/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3h
|
|
|
51
51
|
worker/wellbore/model/ann.py,sha256=4xf-YQqyuWbMXDbH8XV0ohuga5r8SVO9lJVMgdxS-7c,3483
|
|
52
52
|
worker/wellbore/model/annulus.py,sha256=U2JHQtJp6KPVlcAZMlO2MvrQf0I-cM2GlM969RBn8fg,3805
|
|
53
53
|
worker/wellbore/model/drillstring.py,sha256=om3It2UVZs_WSlaVJmpNziEIlAdVlN58tGXjcK0qMDo,6441
|
|
54
|
-
worker/wellbore/model/drillstring_components.py,sha256=
|
|
54
|
+
worker/wellbore/model/drillstring_components.py,sha256=PgemkBONpXRanYrBgcKg_MUnh-YWiwGbBTxb8YpOdfc,14947
|
|
55
55
|
worker/wellbore/model/element.py,sha256=6axQ1eh3zwej_9kke9o1uXNtJv4UABMTK0VmsCDfJYQ,3231
|
|
56
56
|
worker/wellbore/model/enums.py,sha256=DZm-o9ZCM1hSRHw_CcOK4Oy2Q_bmpDM7Gx3GlKQ_bvE,2828
|
|
57
57
|
worker/wellbore/model/hole.py,sha256=LYikxOMJfxhc2yoKZN12pDBIl6W8apJcAGtGR3ZuvhM,10046
|
|
58
58
|
worker/wellbore/model/hole_section.py,sha256=4sfP19xiY--wV1Ve2MtRoNqpya-FdPhNNmTgxLb90uk,1630
|
|
59
59
|
worker/wellbore/model/riser.py,sha256=ElxvQMfdFTGGpJ1Jba_DNVue3zGAsm-05zDl1HBXwDk,824
|
|
60
|
-
corva_worker_python-2.3.
|
|
61
|
-
corva_worker_python-2.3.
|
|
62
|
-
corva_worker_python-2.3.
|
|
63
|
-
corva_worker_python-2.3.
|
|
60
|
+
corva_worker_python-2.3.2.dist-info/METADATA,sha256=hYQ67rnIsVp-GKhIXtKmQLDxnay10EAfGbqmqoZWIEU,1020
|
|
61
|
+
corva_worker_python-2.3.2.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
|
|
62
|
+
corva_worker_python-2.3.2.dist-info/top_level.txt,sha256=KrP-SOC-I1V0U33nVzMgkHR8wO-reJYASIvWVyLyFIY,7
|
|
63
|
+
corva_worker_python-2.3.2.dist-info/RECORD,,
|
|
@@ -5,7 +5,7 @@ from enum import Enum
|
|
|
5
5
|
import numpy as np
|
|
6
6
|
|
|
7
7
|
from worker.data.alert import Alerter
|
|
8
|
-
from worker.data.operations import equal, is_stream_app, nanround
|
|
8
|
+
from worker.data.operations import equal, is_stream_app, nanround, to_number
|
|
9
9
|
from worker.data.serialization import serialization
|
|
10
10
|
from worker.data.unit_conversions import US_LIQUID_GAL_to_INCH3
|
|
11
11
|
from worker.mixins.logging import Logger
|
|
@@ -334,14 +334,14 @@ class UnderReamer(Pipe):
|
|
|
334
334
|
def __init__(self, **kwargs):
|
|
335
335
|
super(UnderReamer, self).__init__(**kwargs)
|
|
336
336
|
|
|
337
|
-
self._is_opened: bool = False
|
|
337
|
+
self._is_opened: bool = kwargs.get("_is_opened", False)
|
|
338
338
|
self.alerted_at_timestamp: float = 0.0
|
|
339
339
|
self.ALERT_BACKOFF_TIME = 3600
|
|
340
340
|
|
|
341
|
-
self.tfa =
|
|
342
|
-
self.ur_opened_depth = kwargs.get("ur_opened_depth")
|
|
343
|
-
self.ur_opened_od =
|
|
344
|
-
self.flow_rate =
|
|
341
|
+
self.tfa = to_number(kwargs.get("tfa"))
|
|
342
|
+
self.ur_opened_depth = to_number(kwargs.get("ur_opened_depth"))
|
|
343
|
+
self.ur_opened_od = to_number(kwargs.get("ur_opened_od"))
|
|
344
|
+
self.flow_rate = to_number(kwargs.get("flow_rate"))
|
|
345
345
|
self.activation_logic = self.ActivationLogic(kwargs["activation_logic"])
|
|
346
346
|
self.pipe_type = PipeType.UNDERREAMER
|
|
347
347
|
|
|
@@ -355,7 +355,7 @@ class UnderReamer(Pipe):
|
|
|
355
355
|
This property is needed for enabling split flow
|
|
356
356
|
:return:
|
|
357
357
|
"""
|
|
358
|
-
return self._is_opened
|
|
358
|
+
return self._is_opened
|
|
359
359
|
|
|
360
360
|
def set_opened(self, opened: bool):
|
|
361
361
|
self._is_opened = opened
|
|
@@ -368,11 +368,16 @@ class UnderReamer(Pipe):
|
|
|
368
368
|
return self.UnderReamerActivationType.ALREADY_ACTIVATED
|
|
369
369
|
|
|
370
370
|
# if it was never activated and logic is open hole
|
|
371
|
-
if self.activation_logic == self.ActivationLogic.OPEN_HOLE_ACTIVATED and
|
|
371
|
+
if self.activation_logic == self.ActivationLogic.OPEN_HOLE_ACTIVATED and self.ur_opened_depth is None:
|
|
372
372
|
return self.UnderReamerActivationType.OPEN_HOLE
|
|
373
373
|
|
|
374
374
|
# if it was never activated and logic is flow activated
|
|
375
|
-
if
|
|
375
|
+
if (
|
|
376
|
+
mud_flow_rate is not None
|
|
377
|
+
and self.flow_rate is not None
|
|
378
|
+
and mud_flow_rate > self.flow_rate
|
|
379
|
+
and self.ur_opened_depth is None
|
|
380
|
+
):
|
|
376
381
|
return self.UnderReamerActivationType.MUD_FLOW_RATE
|
|
377
382
|
|
|
378
383
|
# Otherwise unactivated
|
|
File without changes
|
|
File without changes
|