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

BUG: Remove spammy snackbar message #3142

Merged
merged 1 commit into from
Aug 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -546,15 +546,6 @@ def extract(self, return_bg=False, add_data=True, **kwargs):
pix_scale_factor = self.cube.meta.get('PIXAR_SR', 1.0)
spec.meta['_pixel_scale_factor'] = pix_scale_factor

# inform the user if scale factor keyword not in metadata
if 'PIXAR_SR' not in self.cube.meta:
snackbar_message = SnackbarMessage(
("PIXAR_SR FITS header keyword not found when parsing spectral cube. "
"Flux/Surface Brightness will use default PIXAR_SR value of 1 sr/pix^2."),
color="warning",
sender=self)
self.hub.broadcast(snackbar_message)

# stuff for exporting to file
self.extracted_spec = spec
self.extraction_available = True
Expand Down
Loading