From 08ecbb461dd948d8ac38b5a339ea28669aa756d8 Mon Sep 17 00:00:00 2001 From: Dominik Roth Date: Fri, 11 Oct 2024 08:57:40 +0200 Subject: [PATCH] Param Repr should contain is_writable not writable --- README.md | 2 +- nucon/core.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5b0b647..05fa209 100644 --- a/README.md +++ b/README.md @@ -57,7 +57,7 @@ print(f"Rods Position Ordered: {nucon.RODS_POS_ORDERED.value}") # The repr of an attribute contains all contained info nucon.CORE_TEMP -# >> NuconParameter(id='CORE_TEMP', value=500.0, param_type=float, writable=False) +# >> NuconParameter(id='CORE_TEMP', value=500.0, param_type=float, is_writable=False) ``` ## API Reference diff --git a/nucon/core.py b/nucon/core.py index 6e61871..5e717a2 100644 --- a/nucon/core.py +++ b/nucon/core.py @@ -99,7 +99,7 @@ class NuconParameter: self.nucon.set(self, new_value, force) def __repr__(self): - return f"NuconParameter(id='{self.id}', value={self.value}, param_type={self.param_type.__name__}, writable={self.is_writable})" + return f"NuconParameter(id='{self.id}', value={self.value}, param_type={self.param_type.__name__}, is_writable={self.is_writable})" def __str__(self): return self.id