From 303f5352e0ad66afe33fd037c6e2068650a27f82 Mon Sep 17 00:00:00 2001 From: Larry Ruckman Date: Wed, 27 Mar 2024 11:41:32 -0700 Subject: [PATCH] updating typeStr for Fixed/UFixed to match AMD naming convention --- python/pyrogue/_Model.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/pyrogue/_Model.py b/python/pyrogue/_Model.py index a90c6d234..73503fc9e 100644 --- a/python/pyrogue/_Model.py +++ b/python/pyrogue/_Model.py @@ -699,7 +699,7 @@ class Fixed(Model): def __init__(self, bitSize, binPoint): super().__init__(bitSize,binPoint) - self.name = f'Fixed_{self.bitSize-self.binPoint-1}_{self.binPoint}' + self.name = f'Fixed_{self.bitSize}_{self.binPoint}' self.ndType = np.dtype(np.float64) class UFixed(Model): @@ -721,5 +721,5 @@ class UFixed(Model): def __init__(self, bitSize, binPoint): super().__init__(bitSize,binPoint) - self.name = f'UFixed_{self.bitSize-self.binPoint-1}_{self.binPoint}' + self.name = f'UFixed_{self.bitSize}_{self.binPoint}' self.ndType = np.dtype(np.float64)