|
@@ -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)
|