Skip to content

Commit 148a355

Browse files
authored
Merge pull request #3 from SMTorg/dev
update for compatibility with SMT 2.8
2 parents ecb42a5 + 77e35d8 commit 148a355

14 files changed

+80
-90
lines changed

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
smt~=2.7.0
1+
smt
22
scipy==1.10.1
33
matplotlib==3.7.5
44
pytest

setup.py

Lines changed: 17 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,33 @@
1-
from setuptools import setup
1+
"""
2+
Author: Mohammad Daffa Robani <[email protected]>
3+
Paul Saves <[email protected]>
4+
Remi Lafage <[email protected]>
5+
Pramudita Satria Palar < [email protected]>
26
3-
CLASSIFIERS = """\
4-
Development Status :: 5 - Production/Stable
5-
Intended Audience :: Science/Research
6-
Intended Audience :: Developers
7-
License :: OSI Approved :: BSD License
8-
Programming Language :: C++
9-
Programming Language :: Python
10-
Programming Language :: Python :: 3
11-
Programming Language :: Python :: 3.8
12-
Programming Language :: Python :: Implementation :: CPython
13-
Topic :: Software Development
14-
Topic :: Scientific/Engineering
15-
Operating System :: Microsoft :: Windows
16-
Operating System :: Unix
17-
Operating System :: MacOS
7+
This package is distributed under New BSD license.
188
"""
199

10+
from setuptools import setup
11+
12+
13+
# Import __version__ without importing the module in setup
14+
exec(open("./smt_explainability/version.py").read())
15+
2016
metadata = dict(
2117
name="smt-explainability",
22-
version="0.1.0",
18+
version=__version__, # noqa
2319
description="",
2420
long_description="",
2521
author="Daffa Robani et al.",
2622
author_email="[email protected]",
23+
maintainer="Paul Saves",
24+
maintainer_email="[email protected]",
2725
license="BSD-3",
28-
classifiers=[_f for _f in CLASSIFIERS.split("\n") if _f],
2926
packages=["smt_explainability"],
30-
install_requires=["smt~=2.7.0"],
27+
install_requires=["smt>=2.8.0", "smt-design-space-ext>=0.3.0"],
3128
extras_require={},
32-
python_requires=">=3.8",
29+
python_requires=">=3.9",
3330
zip_safe=False,
34-
# url="https://github.com/SMTorg/smt", # use the URL to the github repo
35-
# download_url="https://github.com/SMTorg/smt/releases",
3631
)
3732

3833
setup(**metadata)

smt_explainability/pdp/tests/test_partial_dependence.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
)
77
from smt.sampling_methods import LHS
88
from smt.problems import WingWeight
9-
from smt_ex.problems import MixedCantileverBeam
10-
from smt_ex.pdp import partial_dependence
9+
from smt_explainability.problems import MixedCantileverBeam
10+
from smt_explainability.pdp import partial_dependence
1111

1212
import numpy as np
1313
import unittest

smt_explainability/pdp/tests/test_partial_dependence_display.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from smt.problems import WingWeight
33
from smt.sampling_methods import LHS
44

5-
from smt_ex.pdp import PartialDependenceDisplay
5+
from smt_explainability.pdp import PartialDependenceDisplay
66

77
from smt.problems import MixedCantileverBeam
88
from smt.design_space import (

smt_explainability/pdp/tests/test_pd_feature_importance.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
)
77
from smt.sampling_methods import LHS
88
from smt.problems import WingWeight
9-
from smt_ex.problems import MixedCantileverBeam
10-
from smt_ex.pdp import pd_feature_importance
9+
from smt_explainability.problems import MixedCantileverBeam
10+
from smt_explainability.pdp import pd_feature_importance
1111

1212
import unittest
1313

smt_explainability/pdp/tests/test_pd_feature_importance_display.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from smt.problems import WingWeight
33
from smt.sampling_methods import LHS
44

5-
from smt_ex.pdp import PDFeatureImportanceDisplay
5+
from smt_explainability.pdp import PDFeatureImportanceDisplay
66

77
from smt.problems import MixedCantileverBeam
88
from smt.design_space import (

smt_explainability/pdp/tests/test_pd_interaction.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
)
77
from smt.sampling_methods import LHS
88
from smt.problems import WingWeight
9-
from smt_ex.problems import MixedCantileverBeam
10-
from smt_ex.pdp import pd_overall_interaction, pd_pairwise_interaction
9+
from smt_explainability.problems import MixedCantileverBeam
10+
from smt_explainability.pdp import pd_overall_interaction, pd_pairwise_interaction
1111

1212
import itertools
1313
import unittest

smt_explainability/pdp/tests/test_pd_interaction_display.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from smt.problems import WingWeight
33
from smt.sampling_methods import LHS
44

5-
from smt_ex.pdp import PDFeatureInteractionDisplay
5+
from smt_explainability.pdp import PDFeatureInteractionDisplay
66

77
from smt.problems import MixedCantileverBeam
88
from smt.design_space import (

smt_explainability/shap/tests/test_shap_display.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
)
77
from smt.sampling_methods import LHS
88
from smt.problems import WingWeight
9-
from smt_ex.problems import MixedCantileverBeam
10-
from smt_ex.shap import ShapDisplay
9+
from smt_explainability.problems import MixedCantileverBeam
10+
from smt_explainability.shap import ShapDisplay
1111

1212
import unittest
1313

smt_explainability/shap/tests/test_shap_feature_importance.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
)
77
from smt.sampling_methods import LHS
88
from smt.problems import WingWeight
9-
from smt_ex.problems import MixedCantileverBeam
10-
from smt_ex.shap import compute_shap_feature_importance
9+
from smt_explainability.problems import MixedCantileverBeam
10+
from smt_explainability.shap import compute_shap_feature_importance
1111

1212
import unittest
1313

0 commit comments

Comments
 (0)