

def __init__(self, fv, fitsimage):
    super(Mosaic, self).__init__(fv, fitsimage)
    self.mosaic_count = 0
    self.img_mosaic = None
    self.bg_ref = 0.0
    self.ev_intr = threading.Event()
    self.lock = threading.RLock()
    self.read_elapsed = 0.0
    self.process_elapsed = 0.0
    self.ingest_count = 0
    self.images = []
    self.total_files = 0
    self.dc = self.fv.getDrawClasses()
    canvas = self.dc.DrawingCanvas()
    canvas.enable_draw(False)
    canvas.add_callback('drag-drop', self.drop_cb)
    canvas.setSurface(fitsimage)
    self.canvas = canvas
    self.layertag = 'mosaic-canvas'
    prefs = self.fv.get_preferences()
    self.settings = prefs.createCategory('plugin_Mosaic')
    self.settings.setDefaults(annotate_images=False, fov_deg=0.2, match_bg=False, trim_px=0, merge=False, num_threads=4, drop_creates_new_mosaic=False, mosaic_hdus=False, skew_limit=0.1, allow_expand=True, expand_pad_deg=0.01, max_center_deg_delta=2.0, make_thumbs=True, reuse_image=False)
    self.settings.load(onError='silent')
    self.mosaic_chname = self.chname
    self.preprocess = (lambda x: x)
    self.gui_up = False

dataset/ETHPy150Open ejeschke/ginga/ginga/misc/plugins/Mosaic.py Mosaic.__init__/original