def load_rec(self):
# first try and see if anything with the save data exists, since obviously
# we dont' want to keep loading from the original load location if some work has
# already been done
load = self.load_from_db({'exp_id': self.exp_id},
cache_filters=True)
# if not, try loading from the loading location
if not load and not self.sameloc:
load = self.load_from_db(self.load_query,
cache_filters=True,
collfs=self.load_collfs,
collfs_recent=self.load_collfs_recent)
if load is None:
raise Exception('You specified load parameters but no '
'record was found with the given spec.')
self.load_data = load
评论列表
文章目录