Skip to content

Commit fa150f6

Browse files
committed
(ME) small adjustment to the last commit
1 parent fcd09ca commit fa150f6

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

pysipfenn/core/modelExporters.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ def __init__(self, calculator: Calculator):
2929
from onnxconverter_common import float16
3030
from onnxsim import simplify
3131
except ModuleNotFoundError as e:
32-
raise Exception(str(e) + '\n\nNote: Export Dependencies are not installed by default. If you need them, you have to install '
33-
'pySIPFENN in `dev` mode like: `pip install "pysipfenn[dev]"`, or like `pip install -e ".[dev]"` (see pysipfenn.org)')
32+
print('\n\nNote: Export Dependencies are not installed by default. If you need them, you have to install pySIPFENN in '
33+
'`dev` mode like: `pip install "pysipfenn[dev]"`, or like `pip install -e ".[dev]"` (see pysipfenn.org)')
3434

3535
self.simplifiedDict = {model: False for model in calculator.loadedModels.keys()}
3636
self.fp16Dict = {model: False for model in calculator.loadedModels.keys()}
@@ -242,9 +242,8 @@ def __init__(self, calculator: Calculator):
242242
try:
243243
import coremltools as ct
244244
except ModuleNotFoundError as e:
245-
raise Exception(str(e) + '\n\nNote: Export Dependencies are not installed by default. If you need them, you have to install '
246-
'pySIPFENN in `dev` mode like: `pip install "pysipfenn[dev]"`, or like `pip install -e ".[dev]"` (see pysipfenn.org)')
247-
245+
print('\n\nNote: Export Dependencies are not installed by default. If you need them, you have to install pySIPFENN in '
246+
'`dev` mode like: `pip install "pysipfenn[dev]"`, or like `pip install -e ".[dev]"` (see pysipfenn.org)')
248247

249248
self.calculator = calculator
250249
assert len(self.calculator.loadedModels)>0, 'No models loaded in calculator. Nothing to export.'

0 commit comments

Comments
 (0)