kappa_sdk.Analysis#

class kappa_sdk.Analysis(context, file_id, analysis_id, name, gof, file_type, cluster_apis, analysis_dto_converter, log_log_data=None)[source]#

KW analysis object.

Presents an analysis from the KW document that can be queried for a contained log-log data.

Note

Should not be instantiated directly.

Attributes

Analysis.gof

Gets the goodness of fit of the Analysis if it exists.

Analysis.id

Gets the id of the Analysis object.

Analysis.log_log_data

Returns a list of document vectors contained in this Analysis.

Analysis.name

Gets the name of the Analysis.

Methods

Analysis.get_keg5_from_project([with_wells, ...])

Returns a representation of the run of a Rubis document in keg5 format

Analysis.get_model_xml(action)

Returns model definition in KW-KA exchange XML format for this analysis.

Analysis.get_plot_data(plot_type[, use_cache])

Returns a list of document vectors contained in a given plot type of this Analysis.

Analysis.refresh_log_log_data()

Refresh the cached value of the Analysis.log_log_data property.

Analysis.rename(new_name)

Rename the Analysis

Analysis.update_project_from_keg5(keg5_xml)

Updates a Rubis run with a document in keg5 format

Parameters:
  • context (KAContext)

  • file_id (str)

  • analysis_id (str)

  • name (str)

  • gof (Optional[float])

  • file_type (KWModuleEnum)

  • cluster_apis (ClusterAPIS)

  • analysis_dto_converter (AnalysisDtoConverter)

  • log_log_data (Optional[List[DocumentVector]])

__init__(context, file_id, analysis_id, name, gof, file_type, cluster_apis, analysis_dto_converter, log_log_data=None)[source]#
Parameters:
  • context (KAContext)

  • file_id (str)

  • analysis_id (str)

  • name (str)

  • gof (float | None)

  • file_type (KWModuleEnum)

  • cluster_apis (ClusterAPIS)

  • analysis_dto_converter (AnalysisDtoConverter)

  • log_log_data (List[DocumentVector] | None)

Return type:

None

property id: str#

Gets the id of the Analysis object.

property name: str#

Gets the name of the Analysis.

property gof: float | None#

Gets the goodness of fit of the Analysis if it exists.

property log_log_data: List[DocumentVector]#

Returns a list of document vectors contained in this Analysis.

refresh_log_log_data()[source]#

Refresh the cached value of the Analysis.log_log_data property.

Return type:

List[DocumentVector]

rename(new_name)[source]#

Rename the Analysis

Parameters:

new_name (str)

Return type:

None

get_plot_data(plot_type, use_cache=True)[source]#

Returns a list of document vectors contained in a given plot type of this Analysis.

Parameters:
  • plot_type (str)

  • use_cache (bool)

Return type:

List[DocumentVector]

get_model_xml(action)[source]#

Returns model definition in KW-KA exchange XML format for this analysis.

Parameters:

action (ModelActionEnum)

Return type:

str

get_keg5_from_project(with_wells=True, with_faults=True, with_pvt=True, with_properties=True, with_layers_regions=True, with_contours=True)[source]#

Returns a representation of the run of a Rubis document in keg5 format

Parameters:
  • with_wells (bool)

  • with_faults (bool)

  • with_pvt (bool)

  • with_properties (bool)

  • with_layers_regions (bool)

  • with_contours (bool)

Return type:

str

update_project_from_keg5(keg5_xml, with_pvt=True, with_properties=True, with_layers_regions=True, with_contours=True)[source]#

Updates a Rubis run with a document in keg5 format

Parameters:
  • keg5_xml (str)

  • with_pvt (bool)

  • with_properties (bool)

  • with_layers_regions (bool)

  • with_contours (bool)

Return type:

None