Skip to content

Commit

Permalink
closes #129
Browse files Browse the repository at this point in the history
  • Loading branch information
mpvanderschelling committed Nov 9, 2023
1 parent c087c21 commit 25dd143
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/f3dasm/_src/design/parameter.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,8 @@ def _check_types(self):
self.lower_bound, float) or not isinstance(
self.upper_bound, float):
raise TypeError(
f"Expect float, got {type(self.lower_bound)} \
and {type(self.upper_bound)}")
f"Expect float, got {type(self.lower_bound).__name__} \
and {type(self.upper_bound).__name__}")

def _check_range(self):
"""Check if the lower boundary is lower than the higher boundary"""
Expand Down Expand Up @@ -174,8 +174,8 @@ def _check_types(self):
if not isinstance(self.lower_bound, int) or not isinstance(
self.upper_bound, int):
raise TypeError(
f"Expect integer, got {type(self.lower_bound)} and \
{type(self.upper_bound)}")
f"Expect integer, got {type(self.lower_bound).__name__} and \
{type(self.upper_bound).__name__}")

def _check_range(self):
"""Check if the lower boundary is lower than the higher boundary"""
Expand Down

0 comments on commit 25dd143

Please sign in to comment.