From 79012dd0ea8b1541069fc49dcb415528049fda05 Mon Sep 17 00:00:00 2001
From: vermeul <swen@ethz.ch>
Date: Tue, 12 Mar 2019 16:54:48 +0100
Subject: [PATCH] added collection as alias to experiment

---
 pybis/src/python/pybis/openbis_object.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pybis/src/python/pybis/openbis_object.py b/pybis/src/python/pybis/openbis_object.py
index 1bf0ffedbbb..a2af86eb1b4 100644
--- a/pybis/src/python/pybis/openbis_object.py
+++ b/pybis/src/python/pybis/openbis_object.py
@@ -64,6 +64,7 @@ class OpenBisObject():
             return self.openbis.get_experiment(self._experiment['identifier'])
         except Exception:
             pass
+    collection = experiment  # Alias
 
     @property
     def sample(self):
@@ -71,7 +72,6 @@ class OpenBisObject():
             return self.openbis.get_sample(self._sample['identifier'])
         except Exception:
             pass
-
     object = sample # Alias
 
     def __getattr__(self, name):
-- 
GitLab