From ff4f6d088fee6f1462b05c2b1d97f03dc41de145 Mon Sep 17 00:00:00 2001
From: vermeul <swen@ethz.ch>
Date: Tue, 12 Mar 2019 16:56:30 +0100
Subject: [PATCH] added get_objects, get_object  and get_collections as aliases
 to the corresponding methods

---
 pybis/src/python/pybis/project.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/pybis/src/python/pybis/project.py b/pybis/src/python/pybis/project.py
index 60ee53ba918..dce9ba8dcb5 100644
--- a/pybis/src/python/pybis/project.py
+++ b/pybis/src/python/pybis/project.py
@@ -32,6 +32,7 @@ class Project(OpenBisObject):
 
     def get_samples(self, **kwargs):
         return self.openbis.get_samples(project=self.permId, **kwargs)
+    get_objects = get_samples # Alias
 
     def get_sample(self, sample_code):
         if is_identifier(sample_code) or is_permid(sample_code):
@@ -39,11 +40,12 @@ class Project(OpenBisObject):
         else:
             # we assume we just got the code
             return self.openbis.get_sample(project=self, code=sample_code)
+    get_object = get_sample # Alias
 
-    get_objects = get_samples # Alias
 
     def get_experiments(self):
         return self.openbis.get_experiments(project=self.permId)
+    get_collections = get_experiments  # Alias
 
     def get_datasets(self):
         return self.openbis.get_datasets(project=self.permId)
-- 
GitLab