Skip to content

Commit

Permalink
fix wrong type (array instead of list)
Browse files Browse the repository at this point in the history
Signed-off-by: chipmuenk <mail@chipmuenk.de>
  • Loading branch information
chipmuenk committed May 5, 2019
1 parent 5ee7f8b commit e38739f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyfda/pyfda_fix_lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -584,8 +584,8 @@ def fixp(self, y, scaling='mult'):
y = y.astype(complex) # try to convert to complex
self.N += y.size * 2
except (TypeError, ValueError) as e: # try converting elements recursively
y = list(map(lambda y_scalar:
self.fixp(y_scalar, scaling=scaling), y))
y = np.asarray(map(lambda y_scalar:
self.fixp(y_scalar, scaling=scaling), y)) # was: list()
self.N += y.size
else:
logger.error("Argument '{0}' is of type '{1}',\n"
Expand Down

0 comments on commit e38739f

Please sign in to comment.