Skip to content

Commit

Permalink
ensure that fake data has dtype float
Browse files Browse the repository at this point in the history
  • Loading branch information
sfarrens committed Apr 30, 2020
1 parent 98ee1ef commit b9e293f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modopt/signal/wavelet.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ def get_mr_filters(data_shape, opt='', coarse=False,
fake_data[tuple(zip(data_shape // 2))] = 1

# Call mr_transform.
mr_filters = call_mr_transform(fake_data, opt=opt)
mr_filters = call_mr_transform(fake_data.astype(float), opt=opt)

if trim:
mr_filters = np.array([_trim_filter(f) for f in mr_filters])
Expand Down

0 comments on commit b9e293f

Please sign in to comment.