aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--wqflask/base/trait.py5
-rw-r--r--wqflask/wqflask/ctl/ctl_analysis.py2
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)