Open afrigeri opened 5 months ago
Hello Alessandro,
The issue has to do with how SCAT is set up to run, which involves having two images loaded (a hyperspectral cube in the left frame, and a parameter or pca cube in the right frame). It looks like you were calculating a parameter cube to place in the right frame. When you get to this window: @. You’ll press Initiate which brings up the parameters which will be calculated in this window: @. Here, you can remove the RPEAK1 and BDI100VIS parameters to avoid the issues with calculating these parameters which can sometimes fail for several reasons.
I’ll make updates to the code to do as you suggested and be robust against failures in parameter calculations, saving the successful parameters and skipping the ones that fail.
Best, Michael
From: Alessandro Frigeri @.> Date: Monday, June 24, 2024 at 3:43 AM To: Michael-S-Phillips/SCAT @.> Cc: Subscribed @.***> Subject: [EXT] [Michael-S-Phillips/SCAT] AttributeError: 'SpectralCubeAnalysisTool' object has no attribute 'right_data' (Issue #1)
External Email
scat blocks at RPEAK1 parameter:
calculating: RPEAK1
preparing polynomial arguments
100%|█████████████████████████████████████| 1588905/1588905 [00:00<00:00, 2155250.25it/s]
calculating polynomials
returning peak reflectance and wavelengths of peak reflectance
0it [00:00, ?it/s]/opt/homebrew/Caskroom/miniconda/base/envs/scat/lib/python3.10/site-packages/hypyrameter-0.2.1-py3.10.egg/hypyrameter/paramCalculator.py:884: RuntimeWarning: All-NaN slice encountered
'''
and below:
SCAT/SCAT/scat.py", line 1194, in on_left_canvas_click self.parameter_values = self.right_data[y, x, :].flatten() AttributeError: 'SpectralCubeAnalysisTool' object has no attribute 'right_data' '''
At this point, the output directory is missing the file with previously computed parameters. Is there a way to skip parameters that go in error and save the ones computed?
— Reply to this email directly, view it on GitHubhttps://github.com/Michael-S-Phillips/SCAT/issues/1, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AXOK2AUPYZKBONQHZBYU3VLZI7Z57AVCNFSM6AAAAABJZR7FW6VHI2DSMVQWIX3LMV43ASLTON2WKOZSGM3DSOBZGQ3TEMA. You are receiving this because you are subscribed to this thread.Message ID: @.***>
scat blocks at RPEAK1 parameter:
and below:
At this point, the output directory is missing the file with previously computed parameters. Is there a way to skip parameters that go in error and save the ones computed?