Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions shapepipe/utilities/canfar.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
This module defines methods for managing CANFAR specific actions.

:Author: Samuel Farrens <samuel.farrens@cea.fr>
Martin Kilbinger <martin.kilbinger@cea.fr>

"""

Expand Down Expand Up @@ -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(
Expand All @@ -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

Expand All @@ -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()
Expand Down Expand Up @@ -144,6 +158,7 @@ def dir_list(path, verbose=False):
Raises
------
HTTPError, KeyError
if error occurs during vos command

Returns
-------
Expand Down