Rogii Solo.Comment¶
attribute well |
|
attribute comment_id |
Unique identifier of the |
attribute name |
Name of the |
property comment_boxes |
Get |
method to_dict(get_converted) |
Convert the |
method to_df(get_converted) |
Convert the |
attribute comment |
Reference to the |
attribute commentbox_id |
Unique identifier of the |
attribute text |
Text of the |
attribute anchor_md |
Anchor MD of the |
method to_dict(get_converted) |
Convert the |
method to_df(get_converted) |
Convert the |
Module Contents¶
- class Comment(well: rogii_solo.well.Well, **kwargs)¶
Bases:
rogii_solo.base.BaseObjectRepresent a
Commentassociated with a specificWell. Provides properties such as name and id.- Example:
from rogii_solo import SoloClient client_id = ... # Input your client ID client_secret = ... # Input your client secret solo_client = SoloClient(client_id=client_id, client_secret=client_secret) project = solo_client.set_project_by_name('Project1') well = project.wells.find_by_name('Well1') # Get Comments of the Well comments = well.comments # Get a Comment name comment = comments.find_by_name('Comment1') print(comment.name) # Get a Comment id comment = comments.find_by_id('CommentID') print(comment.comment_id)
- property comment_boxes: rogii_solo.base.ObjectRepository[CommentBox]¶
Get
CommentBoxobjects of theComment.- Returns:
A
CommentBoxinstance of theComment.- Example:
from rogii_solo import SoloClient client_id = ... # Input your client ID client_secret = ... # Input your client secret solo_client = SoloClient(client_id=client_id, client_secret=client_secret) project = solo_client.set_project_by_name('Project1') well = project.wells.find_by_name('Well1') comments = well.comments comment = comments.find_by_name('Comment1') # Get a CommentBox of the Comment comment_box = comment.comment_boxes.find_by_id('CommentBoxID') print(comment_box.to_dict())
- to_dict(get_converted: bool = True) Dict[str, Any]¶
Convert the
Commentinstance to a dictionary.- Returns:
Dictionary representation of the
Comment.- Example:
from rogii_solo import SoloClient client_id = ... # Input your client ID client_secret = ... # Input your client secret solo_client = SoloClient(client_id=client_id, client_secret=client_secret) project = solo_client.set_project_by_name('Project1') well = project.wells.find_by_name('Well1') comments = well.comments comment = comments.find_by_name('Comment1') # Convert the Comment to a dictionary comment_dict = comment.to_dict() print(comment_dict)
- to_df(get_converted: bool = True) pandas.DataFrame¶
Convert the
Commentinstance to a Pandas DataFrame.- Returns:
DataFrame representation of the
Comment.- Example:
from rogii_solo import SoloClient client_id = ... # Input your client ID client_secret = ... # Input your client secret solo_client = SoloClient(client_id=client_id, client_secret=client_secret) project = solo_client.set_project_by_name('Project1') well = project.wells.find_by_name('Well1') comments = well.comments comment = comments.find_by_name('Comment1') # Convert the Comment to a DataFrame comment_df = comment.to_df() print(comment_df)
- class CommentBox(comment: Comment, **kwargs)¶
Bases:
rogii_solo.base.BaseObjectRepresent a
CommentBoxassociated with a specificComment. Provides properties such as text, anchor_md, and id.- Example:
from rogii_solo import SoloClient client_id = ... # Input your client ID client_secret = ... # Input your client secret solo_client = SoloClient(client_id=client_id, client_secret=client_secret) project = solo_client.set_project_by_name('Project1') well = project.wells.find_by_name('Well1') # Get a CommentBox of the Comment comments = well.comments comment = comments.find_by_name('Comment1') comment_box = comment.comment_boxes.find_by_id('CommentBoxID') # Get a CommentBox id comment_box_id = comment_box.commentbox_id print(comment_box_id) # Get a CommentBox anchor md comment_box_anchor_md = comment_box.anchor_md print(comment_box_anchor_md) # Get a CommentBox text comment_box_text = comment_box.text print(comment_box_text)
- comment¶
Reference to the
Commentinstance thisCommentBoxbelongs to.
- commentbox_id: str | None = None¶
Unique identifier of the
CommentBox.
- text: str | None = None¶
Text of the
CommentBox.
- anchor_md: float | None = None¶
Anchor MD of the
CommentBox.
- to_dict(get_converted: bool = True) Dict[str, Any]¶
Convert the
CommentBoxinstance to a dictionary.- Returns:
Dictionary representation of the
CommentBox.- Example:
from rogii_solo import SoloClient client_id = ... # Input your client ID client_secret = ... # Input your client secret solo_client = SoloClient(client_id=client_id, client_secret=client_secret) project = solo_client.set_project_by_name('Project1') well = project.wells.find_by_name('Well1') comments = well.comments comment = comments.find_by_name('Comment1') comment_box = comment.comment_boxes.find_by_id('CommentBoxID') # Convert the CommentBox to a dictionary comment_box_dict = comment_box.to_dict() print(comment_box_dict)
- to_df(get_converted: bool = True) pandas.DataFrame¶
Convert the
CommentBoxinstance to a Pandas DataFrame.- Returns:
DataFrame representation of the
CommentBox.- Example:
from rogii_solo import SoloClient client_id = ... # Input your client ID client_secret = ... # Input your client secret solo_client = SoloClient(client_id=client_id, client_secret=client_secret) project = solo_client.set_project_by_name('Project1') well = project.wells.find_by_name('Well1') comments = well.comments comment = comments.find_by_name('Comment1') comment_box = comment.comment_boxes.find_by_id('CommentBoxID') # Convert the CommentBox to a DataFrame comment_box_df = comment_box.to_df() print(comment_box_df)