Skip to content

Commit

Permalink
Merge pull request #7 from SMTorg/dev
Browse files Browse the repository at this point in the history
Solve #6 by renaming the class and improving the tests and initialization
  • Loading branch information
Paul-Saves authored Oct 23, 2024
2 parents 7c3dd3e + 623e75e commit d3b4dbe
Show file tree
Hide file tree
Showing 6 changed files with 1,233 additions and 1,088 deletions.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
smt @ git+https://github.com/SMTorg/smt@master
smt @ git+https://github.com/Paul-Saves/smt@master
ConfigSpace==0.6.1
adsg-core==1.1.1
pytest # tests runner
Expand Down
36 changes: 33 additions & 3 deletions smt_design_space_ext/__init__.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,39 @@
from .version import __version__

from smt.design_space import (
DesignSpace,
FloatVariable,
IntegerVariable,
OrdinalVariable,
CategoricalVariable,
BaseDesignSpace,
DesignVariable,
)

# Symbols imported in smt to handle hierarchical variables
from smt_design_space_ext.design_space import (
DesignSpace,
ensure_design_space,
NoDefaultConfigurationSpace,
FixedIntegerParam,
HAS_CONFIG_SPACE,
HAS_ADSG,
)
from smt_design_space_ext.cs_ds_imp import ConfigSpaceDesignSpaceImpl

from smt_design_space_ext.adsg_ds_imp import AdsgDesignSpaceImpl

__all__ = ["__version__", "DesignSpace", "ensure_design_space"]
__all__ = [
"__version__",
"DesignSpace",
"FloatVariable",
"IntegerVariable",
"OrdinalVariable",
"CategoricalVariable",
"BaseDesignSpace",
"DesignVariable",
"NoDefaultConfigurationSpace",
"FixedIntegerParam",
"HAS_CONFIG_SPACE",
"HAS_ADSG",
"ConfigSpaceDesignSpaceImpl",
"AdsgDesignSpaceImpl",
]
Loading

0 comments on commit d3b4dbe

Please sign in to comment.