Example #1
0
 def _get_visualization(self):
     """ Helper method which provides EOWorkflowVisualization object
     """
     try:
         from eolearn.visualization import EOWorkflowVisualization
     except ImportError:
         raise RuntimeError(
             'Subpackage eo-learn-visualization has to be installed in order to use EOWorkflow '
             'visualization methods')
     return EOWorkflowVisualization(self)
Example #2
0
 def _get_visualization(self):
     """ Helper method which provides EOWorkflowVisualization object
     """
     # pylint: disable=import-outside-toplevel,raise-missing-from
     try:
         from eolearn.visualization import EOWorkflowVisualization
     except ImportError:
         raise RuntimeError(
             'Subpackage eo-learn-visualization has to be installed in order to use EOWorkflow '
             'visualization methods')
     return EOWorkflowVisualization(self)