Skip to content

Commit

Permalink
BUG: Convert string parameters back to string when loading
Browse files Browse the repository at this point in the history
  • Loading branch information
scottclowe committed Jul 9, 2021
1 parent 934beb0 commit c525739
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions fissa/core.py
Expand Up @@ -685,6 +685,9 @@ def load(self, path=None):
value = cache[field]
if np.array_equal(value, None):
value = None
if value.size == 1 and str(value) == value:
# Handle loading string parameters
value = str(value)
setattr(self, field, value)

def separation_prep(self, redo=False):
Expand Down

0 comments on commit c525739

Please sign in to comment.