From 6a3f964240d9ff28238b2aaeb90d47f8fa244870 Mon Sep 17 00:00:00 2001 From: zsloan Date: Tue, 13 Dec 2016 19:58:23 +0000 Subject: Fixed a problem related to the last commit that caused a problem when loading a collection or doing ctl analysis --- wqflask/base/trait.py | 5 +---- wqflask/wqflask/ctl/ctl_analysis.py | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/wqflask/base/trait.py b/wqflask/base/trait.py index ab0e6b82..eb5b91c3 100644 --- a/wqflask/base/trait.py +++ b/wqflask/base/trait.py @@ -268,10 +268,7 @@ def getSequence(trait, dataset_name): return results[0] -def retrieve_sample_data(trait, dataset_name, samplelist=None): - - dataset = create_dataset(dataset_name) - +def retrieve_sample_data(trait, dataset, samplelist=None): if samplelist == None: samplelist = [] diff --git a/wqflask/wqflask/ctl/ctl_analysis.py b/wqflask/wqflask/ctl/ctl_analysis.py index c6b59ed7..1b1d7155 100644 --- a/wqflask/wqflask/ctl/ctl_analysis.py +++ b/wqflask/wqflask/ctl/ctl_analysis.py @@ -120,7 +120,7 @@ class CTL(object): if trait != "": ts = trait.split(':') gt = TRAIT.GeneralTrait(name = ts[0], dataset_name = ts[1]) - gt = TRAIT.retrieve_sample_data(gt, dataset.name, individuals) + gt = TRAIT.retrieve_sample_data(gt, dataset, individuals) for ind in individuals: if ind in gt.data.keys(): traits.append(gt.data[ind].value) -- cgit v1.2.3