forked from SMTorg/smt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move advanced design space handling in separate `smt-design-space-ext…
…` module (SMTorg#651) * add notebook * update design space utils * ruff' * add adsg 1.1.1 * fix setup
- Loading branch information
1 parent
0e8a348
commit 3646af2
Showing
33 changed files
with
475 additions
and
925 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,4 +11,4 @@ omit = | |
*/tests/* | ||
*/examples/* | ||
*/__init__.py | ||
*/setup.py | ||
*/setup.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,14 @@ | ||
__version__ = "2.7.0" | ||
|
||
__all__ = [ | ||
"surrogate_models", | ||
"kernels", | ||
"design_space", | ||
"applications", | ||
"examples", | ||
"sampling_methods", | ||
"utils", | ||
"tests", | ||
"src", | ||
"problems", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
import importlib | ||
|
||
spec = importlib.util.find_spec("smt_design_space") | ||
if spec: | ||
HAS_DESIGN_SPACE_EXT = True | ||
HAS_CONFIG_SPACE = True | ||
HAS_ADSG = True | ||
else: | ||
HAS_DESIGN_SPACE_EXT = False | ||
HAS_CONFIG_SPACE = False | ||
HAS_ADSG = False | ||
|
||
|
||
if HAS_DESIGN_SPACE_EXT: | ||
from smt_design_space.design_space import ( | ||
CategoricalVariable, | ||
DesignSpace, | ||
BaseDesignSpace, | ||
FloatVariable, | ||
IntegerVariable, | ||
OrdinalVariable, | ||
ensure_design_space, | ||
) | ||
|
||
else: | ||
from smt.design_space.design_space import ( | ||
CategoricalVariable, | ||
DesignSpace, | ||
FloatVariable, | ||
IntegerVariable, | ||
OrdinalVariable, | ||
ensure_design_space, | ||
BaseDesignSpace, | ||
) | ||
|
||
if HAS_DESIGN_SPACE_EXT: | ||
from smt_design_space.design_space import DesignSpaceGraph | ||
else: | ||
|
||
class DesignSpaceGraph: | ||
pass | ||
|
||
|
||
__all__ = [ | ||
"HAS_DESIGN_SPACE_EXT", | ||
"HAS_CONFIG_SPACE", | ||
"HAS_ADSG", | ||
"BaseDesignSpace", | ||
"DesignSpace", | ||
"FloatVariable", | ||
"IntegerVariable", | ||
"OrdinalVariable", | ||
"CategoricalVariable", | ||
"ensure_design_space", | ||
] |
Oops, something went wrong.