simdec 1.2.0__tar.gz → 1.4.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.3
1
+ Metadata-Version: 2.4
2
2
  Name: simdec
3
- Version: 1.2.0
3
+ Version: 1.4.0
4
4
  Summary: Sensitivity analysis using simulation decomposition
5
5
  Project-URL: homepage, https://www.simdec.fi/
6
6
  Project-URL: documentation, https://simdec.readthedocs.io
@@ -16,9 +16,9 @@ Classifier: License :: OSI Approved :: BSD License
16
16
  Classifier: Operating System :: OS Independent
17
17
  Classifier: Programming Language :: Python
18
18
  Classifier: Programming Language :: Python :: 3
19
- Classifier: Programming Language :: Python :: 3.10
20
19
  Classifier: Programming Language :: Python :: 3.11
21
20
  Classifier: Programming Language :: Python :: 3.12
21
+ Classifier: Programming Language :: Python :: 3.13
22
22
  Requires-Python: >=3.10
23
23
  Requires-Dist: numpy
24
24
  Requires-Dist: pandas
@@ -26,19 +26,20 @@ Requires-Dist: salib
26
26
  Requires-Dist: seaborn
27
27
  Provides-Extra: dashboard
28
28
  Requires-Dist: cryptography; extra == 'dashboard'
29
- Requires-Dist: panel>=1.3.8; extra == 'dashboard'
29
+ Requires-Dist: panel>=1.4.5; extra == 'dashboard'
30
30
  Provides-Extra: dev
31
31
  Requires-Dist: accessible-pygments; extra == 'dev'
32
32
  Requires-Dist: cryptography; extra == 'dev'
33
33
  Requires-Dist: hatch; extra == 'dev'
34
34
  Requires-Dist: myst-nb; extra == 'dev'
35
35
  Requires-Dist: numpydoc; extra == 'dev'
36
- Requires-Dist: panel>=1.3.8; extra == 'dev'
36
+ Requires-Dist: panel>=1.4.5; extra == 'dev'
37
37
  Requires-Dist: pre-commit; extra == 'dev'
38
38
  Requires-Dist: pydata-sphinx-theme; extra == 'dev'
39
39
  Requires-Dist: pytest; extra == 'dev'
40
40
  Requires-Dist: pytest-cov; extra == 'dev'
41
41
  Requires-Dist: sphinx; extra == 'dev'
42
+ Requires-Dist: watchfiles; extra == 'dev'
42
43
  Provides-Extra: doc
43
44
  Requires-Dist: accessible-pygments; extra == 'doc'
44
45
  Requires-Dist: myst-nb; extra == 'doc'
@@ -94,6 +95,5 @@ Foundation, and Finnish Foundation for Economic Education.
94
95
  If you use SimDec in your research we would appreciate a citation to the
95
96
  following publications:
96
97
 
97
- - Kozlova, M., & Yeomans, J. S. (2022). Monte Carlo Enhancement via Simulation Decomposition: A “Must-Have” Inclusion for Many Disciplines. _INFORMS Transactions on Education, 22_(3), 147-159. [Available here](https://pubsonline.informs.org/doi/10.1287/ited.2019.0240).
98
98
  - Kozlova, M., Moss, R. J., Yeomans, J. S., & Caers, J. (2024). Uncovering Heterogeneous Effects in Computational Models for Sustainable Decision-making. _Environmental Modelling & Software_, 171, 105898. [https://doi.org/10.1016/j.envsoft.2023.105898](https://doi.org/10.1016/j.envsoft.2023.105898)
99
- - Kozlova, M., Moss, R. J., Roy, P., Alam, A., & Yeomans, J. S. (forthcoming). SimDec algorithm and guidelines for its usage and interpretation. In M. Kozlova & J. S. Yeomans (Eds.), _Sensitivity Analysis for Business, Technology, and Policymaking. Made Easy with Simulation Decomposition_. Routledge.
99
+ - Kozlova, M., Moss, R. J., Roy, P., Alam, A., & Yeomans, J. S. (2024). SimDec algorithm and guidelines for its usage and interpretation. In M. Kozlova & J. S. Yeomans (Eds.), _Sensitivity Analysis for Business, Technology, and Policymaking. Made Easy with Simulation Decomposition_. Routledge. [Available here](https://doi.org/10.4324/9781003453789-3).
@@ -42,6 +42,5 @@ Foundation, and Finnish Foundation for Economic Education.
42
42
  If you use SimDec in your research we would appreciate a citation to the
43
43
  following publications:
44
44
 
45
- - Kozlova, M., & Yeomans, J. S. (2022). Monte Carlo Enhancement via Simulation Decomposition: A “Must-Have” Inclusion for Many Disciplines. _INFORMS Transactions on Education, 22_(3), 147-159. [Available here](https://pubsonline.informs.org/doi/10.1287/ited.2019.0240).
46
45
  - Kozlova, M., Moss, R. J., Yeomans, J. S., & Caers, J. (2024). Uncovering Heterogeneous Effects in Computational Models for Sustainable Decision-making. _Environmental Modelling & Software_, 171, 105898. [https://doi.org/10.1016/j.envsoft.2023.105898](https://doi.org/10.1016/j.envsoft.2023.105898)
47
- - Kozlova, M., Moss, R. J., Roy, P., Alam, A., & Yeomans, J. S. (forthcoming). SimDec algorithm and guidelines for its usage and interpretation. In M. Kozlova & J. S. Yeomans (Eds.), _Sensitivity Analysis for Business, Technology, and Policymaking. Made Easy with Simulation Decomposition_. Routledge.
46
+ - Kozlova, M., Moss, R. J., Roy, P., Alam, A., & Yeomans, J. S. (2024). SimDec algorithm and guidelines for its usage and interpretation. In M. Kozlova & J. S. Yeomans (Eds.), _Sensitivity Analysis for Business, Technology, and Policymaking. Made Easy with Simulation Decomposition_. Routledge. [Available here](https://doi.org/10.4324/9781003453789-3).
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "simdec"
7
- version = "1.2.0"
7
+ version = "1.4.0"
8
8
  description = "Sensitivity analysis using simulation decomposition"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.10"
@@ -23,9 +23,9 @@ classifiers = [
23
23
  "Operating System :: OS Independent",
24
24
  "Programming Language :: Python",
25
25
  "Programming Language :: Python :: 3",
26
- "Programming Language :: Python :: 3.10",
27
26
  "Programming Language :: Python :: 3.11",
28
27
  "Programming Language :: Python :: 3.12",
28
+ "Programming Language :: Python :: 3.13",
29
29
  ]
30
30
 
31
31
  dependencies = [
@@ -37,7 +37,7 @@ dependencies = [
37
37
 
38
38
  [project.optional-dependencies]
39
39
  dashboard = [
40
- "panel>=1.3.8",
40
+ "panel>=1.4.5",
41
41
  "cryptography",
42
42
  ]
43
43
 
@@ -56,6 +56,7 @@ doc = [
56
56
 
57
57
  dev = [
58
58
  "simdec[doc,test,dashboard]",
59
+ "watchfiles",
59
60
  "pre-commit",
60
61
  "hatch",
61
62
  ]
@@ -22,6 +22,8 @@ def states_expansion(states: list[int], inputs: pd.DataFrame) -> list[list[str]]
22
22
  expanded_states.append(["low", "high"])
23
23
  elif state == 3:
24
24
  expanded_states.append(["low", "medium", "high"])
25
+ else:
26
+ expanded_states.append([i for i in range(state)])
25
27
  else:
26
28
  expanded_states.append(state)
27
29
 
@@ -164,7 +164,6 @@ def sensitivity_indices(
164
164
 
165
165
  soe[i, j] = (var_ij - var_i - var_j) / var_y
166
166
 
167
- soe = np.clip(soe, a_min=0, a_max=None)
168
167
  soe = np.where(soe == 0, soe.T, soe)
169
168
  si[i] = foe[i] + soe[:, i].sum() / 2
170
169
 
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes