From ca8018a61f2e014b4aee4da2cbd00d7b591b2f6a Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Wed, 11 Sep 2024 01:43:24 -0500 Subject: Debug Haley-Knott Regression mapping failure I suspect the use of relative paths might be the cause of the failure in the production container — In the development environments and the CI/CD container, the applications are run at the root of the GN2 repository/package. This might not be the case in the production-esque containers, since the packages are installed in GNU Guix's store, and the launching of the application might be entirely elsewhere. This commit will hopefully log out the information necessary to figure out whether or not my hypothesis is correct. --- gn2/utility/Plot.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gn2') diff --git a/gn2/utility/Plot.py b/gn2/utility/Plot.py index b494a4a4..662ffdb8 100644 --- a/gn2/utility/Plot.py +++ b/gn2/utility/Plot.py @@ -30,6 +30,8 @@ from PIL import ImageFont from math import * +from flask import current_app as app + import gn2.utility.corestats as corestats from gn2.base import webqtlConfig from gn2.utility.pillow_utils import draw_rotated_text @@ -181,6 +183,7 @@ def plotBar(canvas, data, barColor=BLUE, axesColor=BLACK, labelColor=BLACK, XLab ) # draw scale + app.logger.debug("Font file path: %s", COUR_FILE) scaleFont = ImageFont.truetype(font=COUR_FILE, size=11) x = xLow for i in range(int(stepX) + 1): -- cgit v1.2.3