From 9dfbdd06f8b7046780d532d2cdda72573cf63d42 Mon Sep 17 00:00:00 2001 From: kriben Date: Mon, 18 Mar 2024 18:46:06 +0000 Subject: [PATCH] Python code linting changes detected by black --- GrpcInterface/Python/rips/case.py | 2 +- GrpcInterface/Python/rips/view.py | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/GrpcInterface/Python/rips/case.py b/GrpcInterface/Python/rips/case.py index 4360c824895..6b36fdc80a9 100644 --- a/GrpcInterface/Python/rips/case.py +++ b/GrpcInterface/Python/rips/case.py @@ -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 @@ -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 diff --git a/GrpcInterface/Python/rips/view.py b/GrpcInterface/Python/rips/view.py index 0b51b4ebbfd..cf7cb53bd23 100644 --- a/GrpcInterface/Python/rips/view.py +++ b/GrpcInterface/Python/rips/view.py @@ -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"""