You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: superannotate/__init__.py
+3-6Lines changed: 3 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -22,16 +22,13 @@
22
22
from .consensus_benchmark.benchmarkimportbenchmark
23
23
from .consensus_benchmark.consensusimportconsensus
24
24
except:
25
+
_WARNING_SHAPELY="To use superannotate.benchmark or superannotate.consensus functions please install shapely package in Anaconda enviornment with # conda install shapely"
25
26
26
27
defbenchmark(*args, **kwargs):
27
-
raiseRuntimeError(
28
-
"To use superannotate.benchmark or superannotate.consensus functions please install shapely package with # conda install shapely or # pip install shapely"
29
-
)
28
+
raiseRuntimeError(_WARNING_SHAPELY)
30
29
31
30
defconsensus(*args, **kwargs):
32
-
raiseRuntimeError(
33
-
"To use superannotate.benchmark or superannotate.consensus functions please install shapely package with # conda install shapely or # pip install shapely"
0 commit comments