Commit b12f863e authored by Samuel GAIST's avatar Samuel GAIST Committed by Flavio TARSETTI

[experiment] Set asset_type and asset_folder class information

parent 9d409539
...@@ -69,6 +69,9 @@ class Storage(utils.Storage): ...@@ -69,6 +69,9 @@ class Storage(utils.Storage):
``<toolchain-user>`` are the same. ``<toolchain-user>`` are the same.
""" """
asset_type = "experiment"
asset_folder = "experiments"
def __init__(self, prefix, name): def __init__(self, prefix, name):
if name.count(os.sep) not in (3, 4): if name.count(os.sep) not in (3, 4):
...@@ -88,7 +91,9 @@ class Storage(utils.Storage): ...@@ -88,7 +91,9 @@ class Storage(utils.Storage):
) )
self.prefix = prefix 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] path = path[:-5]
super(Storage, self).__init__(path) super(Storage, self).__init__(path)
......
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