aboutsummaryrefslogtreecommitdiff
path: root/gn2
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-09-11 01:43:24 -0500
committerFrederick Muriuki Muriithi2024-09-11 01:47:25 -0500
commitca8018a61f2e014b4aee4da2cbd00d7b591b2f6a (patch)
tree60465e00a420dcbdcf9a712ce7996abbfb57cc98 /gn2
parent50fc0b4bc4106164745afc7e1099bb150f6e635f (diff)
downloadgenenetwork2-ca8018a61f2e014b4aee4da2cbd00d7b591b2f6a.tar.gz
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.
Diffstat (limited to 'gn2')
-rw-r--r--gn2/utility/Plot.py3
1 files changed, 3 insertions, 0 deletions
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):