aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMuriithi Frederick Muriuki2019-02-23 07:20:18 +0300
committerBonfaceKilz2020-08-08 03:26:08 +0300
commitd1e5ab462e9e8d147a4eedae57a541084f1bcdcc (patch)
tree4324f4b9b91ef42ea00ace4c7426a6378736a624
parent3d5bff591766d6cea659f041c87b6ef4ff359bee (diff)
downloadgenenetwork2-d1e5ab462e9e8d147a4eedae57a541084f1bcdcc.tar.gz
Update SNP Browser to Pillow
* wqflask/wqflask/snp_browser/snp_browser.py: Use newer, and supported Pillow in place of obsoleted Piddle library.
-rw-r--r--wqflask/wqflask/snp_browser/snp_browser.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/wqflask/wqflask/snp_browser/snp_browser.py b/wqflask/wqflask/snp_browser/snp_browser.py
index 73ab8798..1d28d76a 100644
--- a/wqflask/wqflask/snp_browser/snp_browser.py
+++ b/wqflask/wqflask/snp_browser/snp_browser.py
@@ -3,7 +3,7 @@ from __future__ import absolute_import, print_function, division
from flask import Flask, g, url_for
import string
-import piddle as pid
+from PIL import (Image)
from utility.logger import getLogger
logger = getLogger(__name__ )
@@ -629,7 +629,7 @@ class SnpBrowser(object):
canvas_width = 900
canvas_height = 200
- snp_canvas = pid.PILCanvas(size=(canvas_width, canvas_height))
+ snp_canvas = Image.new("RGBA", size=(canvas_width, canvas_height))
left_offset, right_offset, top_offset, bottom_offset = (30, 30, 40, 50)
plot_width = canvas_width - left_offset - right_offset
plot_height = canvas_height - top_offset - bottom_offset