Skip to content

Commit

Permalink
Fix runtime error when setting the histogram weights
Browse files Browse the repository at this point in the history
  • Loading branch information
tritemio committed Jan 28, 2015
1 parent 91a3332 commit 0f291ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fretbursts/mfit.py
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ def set_weights_func(self, weight_func, weight_kwargs=None):
"""
self.weights = []
for i in range(self.ndata):
weight_kw_i = {k: v[i] if not np.isscalar(v) else v
weight_kw_i = {k: v[i] if isinstance(v, list) else v
for k, v in weight_kwargs.items()}
self.weights.append(weight_func(**weight_kw_i))

Expand Down

0 comments on commit 0f291ac

Please sign in to comment.