From 9adb01b2998aa8868502090e52eb23f12bd8c3ec Mon Sep 17 00:00:00 2001 From: Kamuish Date: Tue, 17 Nov 2020 21:59:51 +0000 Subject: [PATCH] to create a gif the images must exist --- pyarchi/routines/photometric_process.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyarchi/routines/photometric_process.py b/pyarchi/routines/photometric_process.py index 13d5303..19003b2 100644 --- a/pyarchi/routines/photometric_process.py +++ b/pyarchi/routines/photometric_process.py @@ -48,7 +48,7 @@ def photometry(data_fits, save_folder, **kwargs): logger.fatal("Errors found during run time") return -1 - if (kwargs["plot_realtime"]) and not kwargs["optimize"]: + if (kwargs["plot_realtime"] or kwargs['save_gif']) and not kwargs["optimize"]: pnt_mask = np.zeros(data_fits.stars[0].latest_mask.shape) for star in data_fits.stars: plt.contour(star.latest_mask)