rstoolbox.components.Selection.is_empty

Selection.is_empty()

Evaluate if Selection is empty.

Returns:bool

Example

In [1]: from rstoolbox.components import Selection
   ...: ss = Selection([3, 4, 5, 13, 14, 15, 21, 25])
   ...: ss.is_empty()
   ...: 
Out[1]: False

In [2]: Selection().is_empty()
Out[2]: True