Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Outliers: Errors when clicking on 'Apply' #22

Open
patquem opened this issue Jan 15, 2025 · 0 comments
Open

Outliers: Errors when clicking on 'Apply' #22

patquem opened this issue Jan 15, 2025 · 0 comments

Comments

@patquem
Copy link
Contributor

patquem commented Jan 15, 2025

v2025.1dev - PySideGUI:

from ex_gui_2d_maps.py:

When clicking on the 'Apply' button of the 'Outliers removal' settings:

C:\dev\sw\envs3\env_metrocarac\Scripts\python.exe C:\Users\PQ177701\PycharmProjects\fitspy\examples\ex_gui_2d_maps.py
Traceback (most recent call last):
File "C:\Users\PQ177701\PycharmProjects\fitspy\fitspy\apps\pyside\main_controller.py", line 270, in outliers_calculation
self.plot_controller.outliers_calculation(self.model.outliers_coef)
File "C:\Users\PQ177701\PycharmProjects\fitspy\fitspy\apps\pyside\components\plot\controller.py", line 160, in outliers_calculation
self.model.spectra.outliers_limit_calculation(coef=coef)
File "C:\Users\PQ177701\PycharmProjects\fitspy\fitspy\core\spectra.py", line 87, in outliers_limit_calculation
intensity = self.intensity()
File "C:\Users\PQ177701\PycharmProjects\fitspy\fitspy\core\spectra.py", line 62, in intensity
return np.asarray(intensity)
ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (4220,) + inhomogeneous part.
Traceback (most recent call last):

(The issue does not occur when only 1 spectramap is passed to the appli)

@patquem patquem changed the title Outliers: Errors w Outliers: Errors when clicking on 'Apply' Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant