class_docstr: The control widget for setting the visible
  layer, and the background image.
class_docstr_tok: ["The","control","widget","for","setting","the","visible","layer",",","and","the","background","image","."]
docstr: Accept 1D num py array of 0 or 1.0 mask values 
docstr_tok: ["Accept","1D","num","py","array","of","0","or","1.0","mask","values"]
code: def set_static_mask(self, mask):
      """Accept 1D num py array of 0 or 1.0 mask values"""
      self.image_widget.set_selection_alpha(mask)
  
imports: import os
  from pathlib import Path
  import numpy
  import matplotlib.pyplot
  import matplotlib.style
  from matplotlib.backends.backend_qt5agg import FigureCanvas
  from matplotlib.figure import Figure
  from PyQt5.QtWidgets import QVBoxLayout, QWidget, QLabel, QSpinBox, QFormLayout, QPushButton, QFileDialog, QSlider
  from PyQt5.QtCore import pyqtSlot, Qt
  from PIL import Image
label_desc: Use image node_id 6 for calling the HyperspectralImageViewer obj's underlying member method code with example usage: obj.set_static_mask(mask) without return types