aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPjotr Prins2015-03-30 10:32:11 +0200
committerPjotr Prins2015-03-30 10:32:11 +0200
commit490e0919b2757f6815a7e6c7f0cb08e55e1cd02e (patch)
tree178425f7c2813e88b078d9fa5113e11648dae0da
parent949d056c60f0b8ff4b9ffedaa08ca12d60e26ddf (diff)
downloadgenenetwork2-490e0919b2757f6815a7e6c7f0cb08e55e1cd02e.tar.gz
Percentage complete: Add method description
-rw-r--r--wqflask/wqflask/my_pylmm/pyLMM/lmm.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/wqflask/wqflask/my_pylmm/pyLMM/lmm.py b/wqflask/wqflask/my_pylmm/pyLMM/lmm.py
index 8844118f..200424ba 100644
--- a/wqflask/wqflask/my_pylmm/pyLMM/lmm.py
+++ b/wqflask/wqflask/my_pylmm/pyLMM/lmm.py
@@ -814,6 +814,9 @@ def gn2_redis(key,species,new_code=True):
tempdata = temp_data.TempData(params['temp_uuid'])
def update_tempdata(loc,i,total):
+ """
+ This is the single method that updates Redis for percentage complete!
+ """
tempdata.store("percent_complete",round(i*100.0/total))
debug("Updating REDIS percent_complete=%d" % (round(i*100.0/total)))
progress_set_func(update_tempdata)