Projects/laydi
Projects
/
laydi
Archived
7
0
Fork 0

Smoker workflow now loads data from correct path.

This commit is contained in:
Einar Ryeng 2007-12-14 15:15:01 +00:00
parent ba7d8fc34f
commit a94c3ed1cc
1 changed files with 5 additions and 4 deletions

View File

@ -1,4 +1,5 @@
import sys,os
import os.path
import webbrowser
import cPickle
@ -76,7 +77,7 @@ class DatasetLoadFunctionSmokerSmall(workflow.Function):
workflow.Function.__init__(self, 'load_small', 'Smoker (Small)')
def run(self):
path = 'data/smokers-small/'
path = os.path.join(main.options.datadir, 'smokers-small/')
files = os.listdir(path)
out = []
for fname in files:
@ -92,7 +93,7 @@ class DatasetLoadFunctionSmokerMedium(workflow.Function):
workflow.Function.__init__(self, 'load_medium', 'Smoker (Medium)')
def run(self):
path = 'data/smokers-medium/'
path = os.path.join(main.options.datadir, 'smokers-medium/')
files = os.listdir(path)
out = []
for fname in files:
@ -108,7 +109,7 @@ class DatasetLoadFunctionSmokerFull(workflow.Function):
workflow.Function.__init__(self, 'load_full', 'Smoker (Full)')
def run(self):
path = 'data/smokers-full/'
path = os.path.join(main.options.datadir, 'smokers-full/')
files = os.listdir(path)
out = []
for fname in files:
@ -123,7 +124,7 @@ class DatasetLoadFunctionSmokerGO(workflow.Function):
workflow.Function.__init__(self, 'load_go', 'Smoker (GO)')
def run(self):
path = 'data/smokers-go/'
path = os.path.join(main.options.datadir, 'smokers-go/')
files = os.listdir(path)
out = []
for fname in files: