Commit c377dd08 authored by Maude Le Jeune's avatar Maude Le Jeune
Browse files : break the log while to avoid infinite loop

parent 853954e0
......@@ -285,6 +285,8 @@ class Environment(EnvironmentBase):
elif isinstance(segs,str):
segs = [segs]
if not isinstance (segs, list):
self.logger.critical ("can't convert string to list")
for x in segs:
segx = self._worker.pipe.find_seg(self._worker.task.seg, x)
if segx is None:
......@@ -303,7 +303,7 @@ class Web:
## find log dir
last_dir = l[0][1]
log_dir = False
while not log_dir:
while not log_dir and last_dir != '/':
last_dir = os.path.abspath(os.path.join(last_dir, os.path.pardir))
log_dir = os.path.isdir(os.path.join(last_dir, "log"))
log_dir = os.path.join(last_dir, "log")
......@@ -216,7 +216,7 @@ pickle.dump(dict(( ('ntasks', ntasks), ('nseg', nseg), ('TT', TT), ('TT_done', T
import pickle
fid = file ("results.pkl", "r")
fid = file ("results_nersc.pkl", "r")
d = pickle.load(fid)
for k,v in d.iteritems():
globals()[k] = v
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment