diff --git a/shapepipe/utilities/canfar.py b/shapepipe/utilities/canfar.py index 928c57d7a..c5d3c5f0a 100644 --- a/shapepipe/utilities/canfar.py +++ b/shapepipe/utilities/canfar.py @@ -5,6 +5,7 @@ This module defines methods for managing CANFAR specific actions. :Author: Samuel Farrens + Martin Kilbinger """ @@ -54,6 +55,10 @@ def _check_vos_install(): Check if VOS is correctly installed. + Raises + ------ + ImportError + if vos package cannot be imported """ if import_fail: raise ImportError( @@ -67,6 +72,11 @@ def command(self): This method sets the VOS command property. + Raises + ------ + ValueError + if value is not valid vos command + """ return self._command @@ -85,6 +95,10 @@ def __call__(self, *args, **kwargs): This method allows class instances to be called as functions. + Raises + ------ + vosError + if error in vos command occurs """ try: self._command() @@ -144,6 +158,7 @@ def dir_list(path, verbose=False): Raises ------ HTTPError, KeyError + if error occurs during vos command Returns -------