From b12f863ee0acf650a724601591f47c7ae571e80f Mon Sep 17 00:00:00 2001 From: Samuel Gaist <samuel.gaist@idiap.ch> Date: Mon, 6 May 2019 13:58:46 +0200 Subject: [PATCH] [experiment] Set asset_type and asset_folder class information --- beat/core/experiment.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/beat/core/experiment.py b/beat/core/experiment.py index dfd8c8ff..a901c927 100644 --- a/beat/core/experiment.py +++ b/beat/core/experiment.py @@ -69,6 +69,9 @@ class Storage(utils.Storage): ``<toolchain-user>`` are the same. """ + asset_type = "experiment" + asset_folder = "experiments" + def __init__(self, prefix, name): if name.count(os.sep) not in (3, 4): @@ -88,7 +91,9 @@ class Storage(utils.Storage): ) self.prefix = prefix - path = utils.hashed_or_simple(self.prefix, "experiments", name, suffix=".json") + path = utils.hashed_or_simple( + self.prefix, self.asset_folder, name, suffix=".json" + ) path = path[:-5] super(Storage, self).__init__(path) -- GitLab