smeerten / ssnake

A program for the analysis of NMR data.
Other
19 stars 15 forks source link

Error raise during apodization with shifting #162

Open jtrebosc opened 7 months ago

jtrebosc commented 7 months ago

Trying to apodize a 2D dataset, showing as 2D, and D1 as active dimension. When shifting is active (shifting along axis 2) an exception is raised. Traceback (most recent call last): File "ssnake/src/ssNake.py", line 3958, in dropdownChanged self.apodPreview() File "ssnake/src/ssNake.py", line 3988, in apodPreview self.father.current.apodPreview(lor, gauss, [cos2, cos2Ph], hamming, shift, shifting, shiftingAxis) File "ssnake/src/views.py", line 736, in apodPreview curve = self.data1D.apodize(lor, gauss, cos2, hamming, shift, shifting, shiftingAxis, -1, preview=preview) File "ssnake/src/spectrum.py", line 1674, in apodize previewData = previewData.reshape(multShape) ValueError: cannot reshape array of size 38416 into shape (1,196) With dataset: image