kappa_sdk.ShutIn#
- class kappa_sdk.ShutIn(start_date, end_date, is_reference, pressure_id, shut_in_category, shut_in_type, rate_multiplier, comment, kw_api, vector_id=None, data_api=None)[source]#
Class to store any shutin
Attributes
Returns the comment of the
ShutInobjectReturns the duration of the
ShutInobjectReturns the end date of the
ShutInobjectReturns whether the ShutIn is fit for use or not, returns None if the category is Unknown
Returns whether the ShutIn is an hard shutin or not, returns None if the type is Unknown
Returns whether the ShutIn is reference or not
Returns the rate multiplier of the
ShutInobjectReturns the category of the
ShutInobjectReturns the type of the
ShutInobjectReturns the start date of the
ShutInobjectMethods
Get Loglog preview
DocumentVectorfrom shut-in dates :param pressure_id: Pressure vector id to use :param to_date: End date of the shut-in, if None it will use the initial end date of the shut-in :param tp: Horner Time on productionShutIn.update([shut_in_category, ...])Updates the attributes of this
ShutInand persists the change immediately.- Parameters:
start_date (datetime)
end_date (datetime)
is_reference (bool)
pressure_id (str | None)
shut_in_category (ShutInCategoriesEnum)
shut_in_type (ShutInTypesEnum)
rate_multiplier (float)
comment (str | None)
kw_api (KWAPI)
vector_id (str | None)
data_api (DataAPI | None)
- __init__(start_date, end_date, is_reference, pressure_id, shut_in_category, shut_in_type, rate_multiplier, comment, kw_api, vector_id=None, data_api=None)[source]#
- Parameters:
start_date (datetime)
end_date (datetime)
is_reference (bool)
pressure_id (str | None)
shut_in_category (ShutInCategoriesEnum)
shut_in_type (ShutInTypesEnum)
rate_multiplier (float)
comment (str | None)
kw_api (KWAPI)
vector_id (str | None)
data_api (DataAPI | None)
- property is_reference: bool#
Returns whether the ShutIn is reference or not
- property fit_for_use: bool | None#
Returns whether the ShutIn is fit for use or not, returns None if the category is Unknown
- property hard_shutin: bool | None#
Returns whether the ShutIn is an hard shutin or not, returns None if the type is Unknown
- property shut_in_category: ShutInCategoriesEnum#
Returns the category of the
ShutInobject
- property shut_in_type: ShutInTypesEnum#
Returns the type of the
ShutInobject
- update(shut_in_category=None, shut_in_type=None, rate_multiplier=None, comment=None, is_reference=None)[source]#
Updates the attributes of this
ShutInand persists the change immediately.Only the arguments you provide are modified; the others are left unchanged. To clear an existing comment, pass an empty string.
The
ShutInmust have been obtained throughShutInList.from_data().- Parameters:
shut_in_category (ShutInCategoriesEnum | None) – New
ShutInCategoriesEnum(fit for use / not fit for use / unknown).shut_in_type (ShutInTypesEnum | None) – New
ShutInTypesEnum(hard / soft / unknown).rate_multiplier (float | None) – New rate multiplier applied to the reference rate of this shut-in.
comment (str | None) – New comment. Pass an empty string to clear the existing comment.
is_reference (bool | None) – Whether this shut-in should be the reference shut-in.
- Return type:
None
- get_log_log_preview_from_shut_in_dates(pressure_id=None, to_date=None, tp=10)[source]#
Get Loglog preview
DocumentVectorfrom shut-in dates :param pressure_id: Pressure vector id to use :param to_date: End date of the shut-in, if None it will use the initial end date of the shut-in :param tp: Horner Time on production- Returns:
List[:class:`DocumentVector]` – List of document vectors which contains the Loglog dP values and the Bourdet derivative values- Parameters:
pressure_id (str | None)
to_date (datetime | None)
tp (float)
- Return type:
List[DocumentVector]