Skip to content

Commit

Permalink
Ensure categorical parameters strip whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
kstone40 committed Aug 18, 2024
1 parent 2ef065e commit 4b81551
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions obsidian/parameters/discrete.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ def __init__(self,
super().__init__(name=name)
if isinstance(categories, str):
self.categories = categories.split(',')
self.categories = [c.rstrip().lstrip() for c in self.categories]
else:
self.categories = categories
for c in self.categories:
Expand Down

0 comments on commit 4b81551

Please sign in to comment.