CosmoStat/Sparse2D

[BUG] Wavelet Transform of `BsplineWaveletTransformATrousAlgorithm` gives errors

chaithyagr opened this issue · 0 comments

Here is a simple python code that tries to use the bindings to get the results:

import pysap
import numpy as np
transform = pysap.load_transform('BsplineWaveletTransformATrousAlgorithm')
linear_op = transform(nb_scale=4)
x = np.random.random((100, 100))
linear_op.data = x
linear_op.analysis()
y = linear_op.analysis_data

On running this, I see a huge set of prints as follows:
get_indexError: bad parameter bord in get_indexError: and so on.

On debugging I noticed that this particularly happened at line linear_op.analysis(), so to me it looks like a bug in this particular Wavelet.