File tree Expand file tree Collapse file tree 3 files changed +2
-21
lines changed Expand file tree Collapse file tree 3 files changed +2
-21
lines changed Original file line number Diff line number Diff line change 4
4
from .ax .service .multi_fidelity import AxMultiFidelityGenerator
5
5
from .ax .service .ax_client import AxClientGenerator
6
6
from .ax .developer .multitask import AxMultitaskGenerator
7
- except ( ImportError , ModuleNotFoundError ) as e :
8
- if e .__str__ (). startswith ( "No module named 'ax" ) :
7
+ except ImportError as e :
8
+ if e .__str__ () == "No module named 'ax'" :
9
9
# Replace generators by dummy generators that will
10
10
# raise an error only if the user tries to instantiate them
11
11
# and tell them to install ax-platform
Original file line number Diff line number Diff line change 29
29
30
30
ax_installed = True
31
31
except ImportError :
32
- from .import_error_dummy_class import AxImportErrorDummyClass
33
- AxClient = AxImportErrorDummyClass
34
- TorchModelBridge = AxImportErrorDummyClass
35
32
ax_installed = False
36
33
37
-
38
34
from optimas .core import VaryingParameter , Objective
39
35
from optimas .utils .other import convert_to_dataframe
40
36
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments