Browse Source

Add name argument when creating workspace

Matthias Vogelgesang 9 years ago
parent
commit
3b5cc094c9
1 changed files with 5 additions and 2 deletions
  1. 5 2
      concert_workspacecreator.py

+ 5 - 2
concert_workspacecreator.py

@@ -52,11 +52,14 @@ class WorkspaceCreator(object):
         except PyTango.DevFailed as e:
             raise IOError("PyTango: {}".format(e[0].desc))
 
-    def create(self):
+    def create(self, name):
         """Create a new workspace.
 
+        Args:
+            name (str): Name of the workspace or dataset
+
         Returns:
             Workspace: A new workspace object
         """
-        workspace_id = self._device.CreateWorkspace()
+        workspace_id = self._device.CreateWorkspace(name)
         return Workspace(self._device, workspace_id)