Skip to content

Commit

Permalink
Python code linting changes detected by black
Browse files Browse the repository at this point in the history
  • Loading branch information
kriben committed Mar 19, 2024
1 parent bce8b45 commit 9dfbdd0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion GrpcInterface/Python/rips/case.py
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,7 @@ def view(self, view_id):
return view_object
return None


@add_method(Case)
def views(self):
"""Get all views of a case
Expand All @@ -349,7 +350,6 @@ def views(self):
return views_for_case



@add_method(Case)
def create_view(self):
"""Create a new view in the current case
Expand Down
4 changes: 3 additions & 1 deletion GrpcInterface/Python/rips/view.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,11 +186,13 @@ def export_property(self, undefined_value=0.0):
)
)


def extract_address(address) -> int:
# Address form: "RimReservoir:123345345345435"
parts = address.split(':')
parts = address.split(":")
return int(parts[1])


@add_method(View)
def case(self):
"""Get the case the view belongs to"""
Expand Down

0 comments on commit 9dfbdd0

Please sign in to comment.