westpa 2022.5__tar.gz → 2022.7__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.

Potentially problematic release.


This version of westpa might be problematic. Click here for more details.

Files changed (173) hide show
  1. {westpa-2022.5/src/westpa.egg-info → westpa-2022.7}/PKG-INFO +27 -5
  2. {westpa-2022.5 → westpa-2022.7}/README.rst +2 -2
  3. {westpa-2022.5 → westpa-2022.7}/pyproject.toml +6 -4
  4. {westpa-2022.5 → westpa-2022.7}/setup.py +2 -2
  5. {westpa-2022.5 → westpa-2022.7}/src/westpa/__init__.py +0 -4
  6. {westpa-2022.5 → westpa-2022.7}/src/westpa/_version.py +3 -3
  7. {westpa-2022.5 → westpa-2022.7}/src/westpa/cli/core/w_fork.py +1 -1
  8. {westpa-2022.5 → westpa-2022.7}/src/westpa/cli/core/w_init.py +0 -1
  9. {westpa-2022.5 → westpa-2022.7}/src/westpa/cli/core/w_run.py +0 -1
  10. {westpa-2022.5 → westpa-2022.7}/src/westpa/cli/core/w_states.py +0 -2
  11. {westpa-2022.5 → westpa-2022.7}/src/westpa/cli/core/w_succ.py +1 -1
  12. {westpa-2022.5 → westpa-2022.7}/src/westpa/cli/tools/w_assign.py +0 -1
  13. {westpa-2022.5 → westpa-2022.7}/src/westpa/cli/tools/w_bins.py +0 -1
  14. {westpa-2022.5 → westpa-2022.7}/src/westpa/cli/tools/w_dumpsegs.py +1 -1
  15. {westpa-2022.5 → westpa-2022.7}/src/westpa/cli/tools/w_eddist.py +0 -4
  16. {westpa-2022.5 → westpa-2022.7}/src/westpa/cli/tools/w_ipa.py +0 -1
  17. {westpa-2022.5 → westpa-2022.7}/src/westpa/cli/tools/w_multi_west.py +16 -11
  18. {westpa-2022.5 → westpa-2022.7}/src/westpa/cli/tools/w_pdist.py +0 -1
  19. {westpa-2022.5 → westpa-2022.7}/src/westpa/cli/tools/w_red.py +0 -1
  20. {westpa-2022.5 → westpa-2022.7}/src/westpa/core/_rc.py +0 -1
  21. {westpa-2022.5 → westpa-2022.7}/src/westpa/core/binning/_assign.c +2183 -870
  22. {westpa-2022.5 → westpa-2022.7}/src/westpa/core/binning/assign.py +5 -3
  23. {westpa-2022.5 → westpa-2022.7}/src/westpa/core/binning/binless_driver.py +1 -1
  24. {westpa-2022.5 → westpa-2022.7}/src/westpa/core/binning/binless_manager.py +25 -2
  25. {westpa-2022.5 → westpa-2022.7}/src/westpa/core/binning/mab.py +23 -7
  26. {westpa-2022.5 → westpa-2022.7}/src/westpa/core/binning/mab_driver.py +1 -1
  27. {westpa-2022.5 → westpa-2022.7}/src/westpa/core/binning/mab_manager.py +25 -2
  28. {westpa-2022.5 → westpa-2022.7}/src/westpa/core/data_manager.py +5 -6
  29. {westpa-2022.5 → westpa-2022.7}/src/westpa/core/h5io.py +1 -5
  30. {westpa-2022.5 → westpa-2022.7}/src/westpa/core/kinetics/_kinetics.c +2913 -1105
  31. {westpa-2022.5 → westpa-2022.7}/src/westpa/core/propagators/__init__.py +0 -1
  32. {westpa-2022.5 → westpa-2022.7}/src/westpa/core/propagators/executable.py +10 -10
  33. {westpa-2022.5 → westpa-2022.7}/src/westpa/core/reweight/_reweight.c +2334 -912
  34. {westpa-2022.5 → westpa-2022.7}/src/westpa/core/sim_manager.py +3 -4
  35. {westpa-2022.5 → westpa-2022.7}/src/westpa/core/states.py +19 -3
  36. {westpa-2022.5 → westpa-2022.7}/src/westpa/core/trajectory.py +9 -1
  37. {westpa-2022.5 → westpa-2022.7}/src/westpa/core/we_driver.py +7 -7
  38. {westpa-2022.5 → westpa-2022.7}/src/westpa/core/yamlcfg.py +1 -0
  39. {westpa-2022.5 → westpa-2022.7}/src/westpa/fasthist/_fasthist.c +2008 -785
  40. {westpa-2022.5 → westpa-2022.7}/src/westpa/mclib/_mclib.c +2065 -865
  41. {westpa-2022.5 → westpa-2022.7}/src/westpa/oldtools/aframe/binning.py +2 -2
  42. {westpa-2022.5 → westpa-2022.7}/src/westpa/oldtools/aframe/data_reader.py +3 -4
  43. {westpa-2022.5 → westpa-2022.7}/src/westpa/oldtools/aframe/kinetics.py +0 -1
  44. {westpa-2022.5 → westpa-2022.7}/src/westpa/oldtools/aframe/trajwalker.py +1 -1
  45. {westpa-2022.5 → westpa-2022.7}/src/westpa/oldtools/aframe/transitions.py +1 -3
  46. {westpa-2022.5 → westpa-2022.7}/src/westpa/oldtools/cmds/w_ttimes.py +2 -4
  47. {westpa-2022.5 → westpa-2022.7}/src/westpa/tools/__init__.py +1 -0
  48. {westpa-2022.5 → westpa-2022.7}/src/westpa/tools/binning.py +1 -4
  49. {westpa-2022.5 → westpa-2022.7}/src/westpa/tools/kinetics_tool.py +0 -3
  50. {westpa-2022.5 → westpa-2022.7}/src/westpa/tools/selected_segs.py +0 -1
  51. {westpa-2022.5 → westpa-2022.7}/src/westpa/trajtree/_trajtree.c +1413 -595
  52. {westpa-2022.5 → westpa-2022.7}/src/westpa/trajtree/trajtree.py +0 -2
  53. {westpa-2022.5 → westpa-2022.7}/src/westpa/westext/adaptvoronoi/adaptVor_driver.py +0 -2
  54. {westpa-2022.5 → westpa-2022.7}/src/westpa/westext/hamsm_restarting/example_overrides.py +0 -1
  55. {westpa-2022.5 → westpa-2022.7}/src/westpa/westext/hamsm_restarting/restart_driver.py +1 -18
  56. {westpa-2022.5 → westpa-2022.7}/src/westpa/westext/stringmethod/string_driver.py +0 -1
  57. {westpa-2022.5 → westpa-2022.7}/src/westpa/westext/stringmethod/string_method.py +0 -2
  58. {westpa-2022.5 → westpa-2022.7}/src/westpa/westext/weed/weed_driver.py +2 -2
  59. {westpa-2022.5 → westpa-2022.7}/src/westpa/westext/wess/ProbAdjust.py +0 -1
  60. {westpa-2022.5 → westpa-2022.7}/src/westpa/westext/wess/wess_driver.py +2 -2
  61. {westpa-2022.5 → westpa-2022.7}/src/westpa/work_managers/environment.py +0 -2
  62. {westpa-2022.5 → westpa-2022.7}/src/westpa/work_managers/mpi.py +0 -7
  63. {westpa-2022.5 → westpa-2022.7}/src/westpa/work_managers/zeromq/core.py +1 -5
  64. {westpa-2022.5 → westpa-2022.7}/src/westpa/work_managers/zeromq/node.py +0 -1
  65. {westpa-2022.5 → westpa-2022.7}/src/westpa/work_managers/zeromq/work_manager.py +1 -2
  66. {westpa-2022.5 → westpa-2022.7}/src/westpa/work_managers/zeromq/worker.py +0 -1
  67. {westpa-2022.5 → westpa-2022.7/src/westpa.egg-info}/PKG-INFO +27 -5
  68. {westpa-2022.5 → westpa-2022.7}/src/westpa.egg-info/SOURCES.txt +1 -0
  69. {westpa-2022.5 → westpa-2022.7}/src/westpa.egg-info/requires.txt +3 -1
  70. {westpa-2022.5 → westpa-2022.7}/tests/test_binning.py +0 -1
  71. {westpa-2022.5 → westpa-2022.7}/tests/test_sim_manager.py +99 -5
  72. westpa-2022.7/tests/test_states.py +38 -0
  73. {westpa-2022.5 → westpa-2022.7}/tests/test_we_driver.py +0 -1
  74. {westpa-2022.5 → westpa-2022.7}/tests/test_yamlfe.py +6 -0
  75. {westpa-2022.5 → westpa-2022.7}/AUTHORS +0 -0
  76. {westpa-2022.5 → westpa-2022.7}/LICENSE +0 -0
  77. {westpa-2022.5 → westpa-2022.7}/MANIFEST.in +0 -0
  78. {westpa-2022.5 → westpa-2022.7}/setup.cfg +0 -0
  79. {westpa-2022.5 → westpa-2022.7}/src/westpa/analysis/__init__.py +0 -0
  80. {westpa-2022.5 → westpa-2022.7}/src/westpa/analysis/core.py +0 -0
  81. {westpa-2022.5 → westpa-2022.7}/src/westpa/analysis/statistics.py +0 -0
  82. {westpa-2022.5 → westpa-2022.7}/src/westpa/analysis/trajectories.py +0 -0
  83. {westpa-2022.5 → westpa-2022.7}/src/westpa/cli/__init__.py +0 -0
  84. {westpa-2022.5 → westpa-2022.7}/src/westpa/cli/core/__init__.py +0 -0
  85. {westpa-2022.5 → westpa-2022.7}/src/westpa/cli/core/w_truncate.py +0 -0
  86. {westpa-2022.5 → westpa-2022.7}/src/westpa/cli/tools/__init__.py +0 -0
  87. {westpa-2022.5 → westpa-2022.7}/src/westpa/cli/tools/ploterr.py +0 -0
  88. {westpa-2022.5 → westpa-2022.7}/src/westpa/cli/tools/plothist.py +0 -0
  89. {westpa-2022.5 → westpa-2022.7}/src/westpa/cli/tools/w_crawl.py +0 -0
  90. {westpa-2022.5 → westpa-2022.7}/src/westpa/cli/tools/w_direct.py +0 -0
  91. {westpa-2022.5 → westpa-2022.7}/src/westpa/cli/tools/w_fluxanl.py +0 -0
  92. {westpa-2022.5 → westpa-2022.7}/src/westpa/cli/tools/w_kinavg.py +0 -0
  93. {westpa-2022.5 → westpa-2022.7}/src/westpa/cli/tools/w_kinetics.py +0 -0
  94. {westpa-2022.5 → westpa-2022.7}/src/westpa/cli/tools/w_ntop.py +0 -0
  95. {westpa-2022.5 → westpa-2022.7}/src/westpa/cli/tools/w_postanalysis_matrix.py +0 -0
  96. {westpa-2022.5 → westpa-2022.7}/src/westpa/cli/tools/w_postanalysis_reweight.py +0 -0
  97. {westpa-2022.5 → westpa-2022.7}/src/westpa/cli/tools/w_reweight.py +0 -0
  98. {westpa-2022.5 → westpa-2022.7}/src/westpa/cli/tools/w_select.py +0 -0
  99. {westpa-2022.5 → westpa-2022.7}/src/westpa/cli/tools/w_stateprobs.py +0 -0
  100. {westpa-2022.5 → westpa-2022.7}/src/westpa/cli/tools/w_trace.py +0 -0
  101. {westpa-2022.5 → westpa-2022.7}/src/westpa/core/__init__.py +0 -0
  102. {westpa-2022.5 → westpa-2022.7}/src/westpa/core/binning/__init__.py +0 -0
  103. {westpa-2022.5 → westpa-2022.7}/src/westpa/core/binning/_assign.pyx +0 -0
  104. {westpa-2022.5 → westpa-2022.7}/src/westpa/core/binning/binless.py +0 -0
  105. {westpa-2022.5 → westpa-2022.7}/src/westpa/core/binning/bins.py +0 -0
  106. {westpa-2022.5 → westpa-2022.7}/src/westpa/core/extloader.py +0 -0
  107. {westpa-2022.5 → westpa-2022.7}/src/westpa/core/kinetics/__init__.py +0 -0
  108. {westpa-2022.5 → westpa-2022.7}/src/westpa/core/kinetics/_kinetics.pyx +0 -0
  109. {westpa-2022.5 → westpa-2022.7}/src/westpa/core/kinetics/events.py +0 -0
  110. {westpa-2022.5 → westpa-2022.7}/src/westpa/core/kinetics/matrates.py +0 -0
  111. {westpa-2022.5 → westpa-2022.7}/src/westpa/core/kinetics/rate_averaging.py +0 -0
  112. {westpa-2022.5 → westpa-2022.7}/src/westpa/core/progress.py +0 -0
  113. {westpa-2022.5 → westpa-2022.7}/src/westpa/core/reweight/__init__.py +0 -0
  114. {westpa-2022.5 → westpa-2022.7}/src/westpa/core/reweight/_reweight.pyx +0 -0
  115. {westpa-2022.5 → westpa-2022.7}/src/westpa/core/reweight/matrix.py +0 -0
  116. {westpa-2022.5 → westpa-2022.7}/src/westpa/core/segment.py +0 -0
  117. {westpa-2022.5 → westpa-2022.7}/src/westpa/core/systems.py +0 -0
  118. {westpa-2022.5 → westpa-2022.7}/src/westpa/core/textio.py +0 -0
  119. {westpa-2022.5 → westpa-2022.7}/src/westpa/core/wm_ops.py +0 -0
  120. {westpa-2022.5 → westpa-2022.7}/src/westpa/fasthist/__init__.py +0 -0
  121. {westpa-2022.5 → westpa-2022.7}/src/westpa/fasthist/__main__.py +0 -0
  122. {westpa-2022.5 → westpa-2022.7}/src/westpa/fasthist/_fasthist.pyx +0 -0
  123. {westpa-2022.5 → westpa-2022.7}/src/westpa/mclib/__init__.py +0 -0
  124. {westpa-2022.5 → westpa-2022.7}/src/westpa/mclib/__main__.py +0 -0
  125. {westpa-2022.5 → westpa-2022.7}/src/westpa/mclib/_mclib.pyx +0 -0
  126. {westpa-2022.5 → westpa-2022.7}/src/westpa/oldtools/__init__.py +0 -0
  127. {westpa-2022.5 → westpa-2022.7}/src/westpa/oldtools/aframe/__init__.py +0 -0
  128. {westpa-2022.5 → westpa-2022.7}/src/westpa/oldtools/aframe/atool.py +0 -0
  129. {westpa-2022.5 → westpa-2022.7}/src/westpa/oldtools/aframe/base_mixin.py +0 -0
  130. {westpa-2022.5 → westpa-2022.7}/src/westpa/oldtools/aframe/iter_range.py +0 -0
  131. {westpa-2022.5 → westpa-2022.7}/src/westpa/oldtools/aframe/mcbs.py +0 -0
  132. {westpa-2022.5 → westpa-2022.7}/src/westpa/oldtools/aframe/output.py +0 -0
  133. {westpa-2022.5 → westpa-2022.7}/src/westpa/oldtools/aframe/plotting.py +0 -0
  134. {westpa-2022.5 → westpa-2022.7}/src/westpa/oldtools/cmds/__init__.py +0 -0
  135. {westpa-2022.5 → westpa-2022.7}/src/westpa/oldtools/files.py +0 -0
  136. {westpa-2022.5 → westpa-2022.7}/src/westpa/oldtools/miscfn.py +0 -0
  137. {westpa-2022.5 → westpa-2022.7}/src/westpa/oldtools/stats/__init__.py +0 -0
  138. {westpa-2022.5 → westpa-2022.7}/src/westpa/oldtools/stats/accumulator.py +0 -0
  139. {westpa-2022.5 → westpa-2022.7}/src/westpa/oldtools/stats/edfs.py +0 -0
  140. {westpa-2022.5 → westpa-2022.7}/src/westpa/oldtools/stats/mcbs.py +0 -0
  141. {westpa-2022.5 → westpa-2022.7}/src/westpa/tools/core.py +0 -0
  142. {westpa-2022.5 → westpa-2022.7}/src/westpa/tools/data_reader.py +0 -0
  143. {westpa-2022.5 → westpa-2022.7}/src/westpa/tools/dtypes.py +0 -0
  144. {westpa-2022.5 → westpa-2022.7}/src/westpa/tools/iter_range.py +0 -0
  145. {westpa-2022.5 → westpa-2022.7}/src/westpa/tools/plot.py +0 -0
  146. {westpa-2022.5 → westpa-2022.7}/src/westpa/tools/progress.py +0 -0
  147. {westpa-2022.5 → westpa-2022.7}/src/westpa/tools/wipi.py +0 -0
  148. {westpa-2022.5 → westpa-2022.7}/src/westpa/trajtree/__init__.py +0 -0
  149. {westpa-2022.5 → westpa-2022.7}/src/westpa/trajtree/_trajtree.pyx +0 -0
  150. {westpa-2022.5 → westpa-2022.7}/src/westpa/westext/__init__.py +0 -0
  151. {westpa-2022.5 → westpa-2022.7}/src/westpa/westext/adaptvoronoi/__init__.py +0 -0
  152. {westpa-2022.5 → westpa-2022.7}/src/westpa/westext/hamsm_restarting/__init__.py +0 -0
  153. {westpa-2022.5 → westpa-2022.7}/src/westpa/westext/stringmethod/__init__.py +0 -0
  154. {westpa-2022.5 → westpa-2022.7}/src/westpa/westext/stringmethod/fourier_fitting.py +0 -0
  155. {westpa-2022.5 → westpa-2022.7}/src/westpa/westext/weed/BinCluster.py +0 -0
  156. {westpa-2022.5 → westpa-2022.7}/src/westpa/westext/weed/ProbAdjustEquil.py +0 -0
  157. {westpa-2022.5 → westpa-2022.7}/src/westpa/westext/weed/UncertMath.py +0 -0
  158. {westpa-2022.5 → westpa-2022.7}/src/westpa/westext/weed/__init__.py +0 -0
  159. {westpa-2022.5 → westpa-2022.7}/src/westpa/westext/wess/__init__.py +0 -0
  160. {westpa-2022.5 → westpa-2022.7}/src/westpa/work_managers/__init__.py +0 -0
  161. {westpa-2022.5 → westpa-2022.7}/src/westpa/work_managers/core.py +0 -0
  162. {westpa-2022.5 → westpa-2022.7}/src/westpa/work_managers/processes.py +0 -0
  163. {westpa-2022.5 → westpa-2022.7}/src/westpa/work_managers/serial.py +0 -0
  164. {westpa-2022.5 → westpa-2022.7}/src/westpa/work_managers/threads.py +0 -0
  165. {westpa-2022.5 → westpa-2022.7}/src/westpa/work_managers/zeromq/__init__.py +0 -0
  166. {westpa-2022.5 → westpa-2022.7}/src/westpa.egg-info/dependency_links.txt +0 -0
  167. {westpa-2022.5 → westpa-2022.7}/src/westpa.egg-info/entry_points.txt +0 -0
  168. {westpa-2022.5 → westpa-2022.7}/src/westpa.egg-info/not-zip-safe +0 -0
  169. {westpa-2022.5 → westpa-2022.7}/src/westpa.egg-info/top_level.txt +0 -0
  170. {westpa-2022.5 → westpa-2022.7}/tests/test_data_manager.py +0 -0
  171. {westpa-2022.5 → westpa-2022.7}/tests/test_kinetics.py +0 -0
  172. {westpa-2022.5 → westpa-2022.7}/tests/test_loaders.py +0 -0
  173. {westpa-2022.5 → westpa-2022.7}/versioneer.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: westpa
3
- Version: 2022.5
3
+ Version: 2022.7
4
4
  Home-page: http://github.com/westpa/westpa
5
5
  License: MIT
6
6
  Classifier: Development Status :: 5 - Production/Stable
@@ -12,11 +12,33 @@ Classifier: Programming Language :: Python
12
12
  Classifier: Programming Language :: Python :: 3
13
13
  Classifier: Programming Language :: Cython
14
14
  Requires-Python: >=3.6
15
+ License-File: LICENSE
16
+ License-File: AUTHORS
17
+ Requires-Dist: numpy<2,>=1.16.0
18
+ Requires-Dist: scipy>=0.19.1
19
+ Requires-Dist: h5py>=2.10
20
+ Requires-Dist: mdtraj>=1.9.5
21
+ Requires-Dist: pyyaml
22
+ Requires-Dist: pyzmq
23
+ Requires-Dist: matplotlib
24
+ Requires-Dist: blessings
25
+ Requires-Dist: ipykernel
26
+ Requires-Dist: tqdm
27
+ Requires-Dist: pandas
28
+ Requires-Dist: tables
15
29
  Provides-Extra: tests
30
+ Requires-Dist: pytest; extra == "tests"
31
+ Requires-Dist: pytest-cov; extra == "tests"
32
+ Requires-Dist: pytest-rerunfailures; extra == "tests"
33
+ Requires-Dist: pytest-timeout; extra == "tests"
16
34
  Provides-Extra: mpi
35
+ Requires-Dist: mpi4py; extra == "mpi"
17
36
  Provides-Extra: dev
18
- License-File: LICENSE
19
- License-File: AUTHORS
37
+ Requires-Dist: pytest; extra == "dev"
38
+ Requires-Dist: pytest-cov; extra == "dev"
39
+ Requires-Dist: pytest-rerunfailures; extra == "dev"
40
+ Requires-Dist: pytest-timeout; extra == "dev"
41
+ Requires-Dist: pre-commit; extra == "dev"
20
42
 
21
43
  ===============
22
44
  WESTPA 2.0
@@ -26,7 +48,7 @@ WESTPA 2.0
26
48
 
27
49
  |docs| |usersgroup| |develgroup|
28
50
 
29
- .. |ghactions| image:: https://github.com/westpa/westpa/actions/workflows/test.yaml/badge.svg?branch=westpa-2.0-restruct
51
+ .. |ghactions| image:: https://github.com/westpa/westpa/actions/workflows/test.yaml/badge.svg?branch=westpa2
30
52
  :target: https://github.com/westpa/westpa/actions/workflows/test.yaml
31
53
  :alt: GitHub Actions
32
54
 
@@ -120,7 +142,7 @@ To install from source (**not recommended**), start by downloading the correspon
120
142
 
121
143
  .. _`releases page`: https://github.com/westpa/westpa/releases
122
144
  .. _`Anaconda Python distribution`: https://www.anaconda.com/products/individual
123
- .. _`wiki`: https://github.com/westpa/westpa/wiki/WESTPA-Quick-Install
145
+ .. _`wiki`: https://github.com/westpa/westpa/wiki/Installing-WESTPA
124
146
 
125
147
  ---------------
126
148
  Getting started
@@ -6,7 +6,7 @@ WESTPA 2.0
6
6
 
7
7
  |docs| |usersgroup| |develgroup|
8
8
 
9
- .. |ghactions| image:: https://github.com/westpa/westpa/actions/workflows/test.yaml/badge.svg?branch=westpa-2.0-restruct
9
+ .. |ghactions| image:: https://github.com/westpa/westpa/actions/workflows/test.yaml/badge.svg?branch=westpa2
10
10
  :target: https://github.com/westpa/westpa/actions/workflows/test.yaml
11
11
  :alt: GitHub Actions
12
12
 
@@ -100,7 +100,7 @@ To install from source (**not recommended**), start by downloading the correspon
100
100
 
101
101
  .. _`releases page`: https://github.com/westpa/westpa/releases
102
102
  .. _`Anaconda Python distribution`: https://www.anaconda.com/products/individual
103
- .. _`wiki`: https://github.com/westpa/westpa/wiki/WESTPA-Quick-Install
103
+ .. _`wiki`: https://github.com/westpa/westpa/wiki/Installing-WESTPA
104
104
 
105
105
  ---------------
106
106
  Getting started
@@ -3,11 +3,13 @@ build-backend = 'setuptools.build_meta:__legacy__'
3
3
  # Minimum requirements for the build system to execute.
4
4
  # See current numpy pinning in https://github.com/scipy/oldest-supported-numpy
5
5
  requires = [
6
- "setuptools>=40.8.0",
6
+ "setuptools >=40.8.0",
7
7
  "wheel",
8
- "Cython>=0.29.16", # Note: sync with setup.py
9
- "oldest-supported-numpy",
10
- "scipy>=0.19.1",
8
+ "Cython >=0.29.16; python_version >='3.10'", # Note: sync with setup.py
9
+ "Cython <3.0.3, >=0.29.16; python_version <'3.10'",
10
+ "oldest-supported-numpy; python_version <'3.9'",
11
+ "numpy >=1.25.0, <2; python_version >='3.9'",
12
+ "scipy >=0.19.1",
11
13
  "versioneer-518"
12
14
  ]
13
15
  # Uncommenting this requires adding the top level of the repo to sys.path in the setup.py
@@ -109,7 +109,7 @@ CLASSIFIERS = [
109
109
  ]
110
110
 
111
111
  INSTALL_REQUIRES = [
112
- "numpy >= 1.16.0",
112
+ "numpy >= 1.16.0, <2",
113
113
  "scipy >= 0.19.1",
114
114
  "h5py >= 2.10",
115
115
  "mdtraj >= 1.9.5",
@@ -124,7 +124,7 @@ INSTALL_REQUIRES = [
124
124
  ]
125
125
 
126
126
  EXTRAS_REQUIRE = {
127
- "tests": ["pytest", "pytest-cov", "pytest-rerunfailures"],
127
+ "tests": ["pytest", "pytest-cov", "pytest-rerunfailures", "pytest-timeout"],
128
128
  "mpi": ["mpi4py"],
129
129
  }
130
130
 
@@ -12,7 +12,3 @@ rc = _rc.WESTRC()
12
12
  __version__ = get_versions()["version"]
13
13
 
14
14
  del get_versions
15
-
16
- from . import _version
17
-
18
- __version__ = _version.get_versions()['version']
@@ -8,11 +8,11 @@ import json
8
8
 
9
9
  version_json = '''
10
10
  {
11
- "date": "2023-07-26T13:13:47-0400",
11
+ "date": "2024-04-02T11:29:16-0400",
12
12
  "dirty": false,
13
13
  "error": null,
14
- "full-revisionid": "e022c31147cf74334878926977dfc28a6dbf3bfc",
15
- "version": "2022.05"
14
+ "full-revisionid": "d48640fc3fff59f2f8470d6e7170a73f72fff5c6",
15
+ "version": "2022.07"
16
16
  }
17
17
  ''' # END VERSION_JSON
18
18
 
@@ -101,7 +101,7 @@ def entry_point():
101
101
  state_map = np.empty((n_segments,), dtype=state_map_dtype)
102
102
  state_map['old_n_iter'] = n_iter
103
103
 
104
- for (iseg, (index_row, pcoord)) in enumerate(zip(old_index, old_final_pcoords)):
104
+ for iseg, (index_row, pcoord) in enumerate(zip(old_index, old_final_pcoords)):
105
105
  istate = istates[iseg]
106
106
  istate.iter_created = 0
107
107
  istate.iter_used = 1
@@ -18,7 +18,6 @@ EPS = np.finfo(np.float64).eps
18
18
 
19
19
 
20
20
  def entry_point():
21
-
22
21
  parser = argparse.ArgumentParser(
23
22
  'w_init',
24
23
  description='''\
@@ -30,7 +30,6 @@ def entry_point():
30
30
 
31
31
 
32
32
  def run_simulation():
33
-
34
33
  work_manager = westpa.rc.work_manager = make_work_manager()
35
34
 
36
35
  # Load the sim manager and other drivers
@@ -102,7 +102,6 @@ def entry_point():
102
102
 
103
103
  # TODO: This would benefit from a refactor to set default args to None, and replace some of those "if <argument>" clauses
104
104
  def initialize(mode, bstates, _bstate_file, tstates, _tstate_file):
105
-
106
105
  work_manager = make_work_manager()
107
106
 
108
107
  system = westpa.rc.get_system_driver()
@@ -116,7 +115,6 @@ def initialize(mode, bstates, _bstate_file, tstates, _tstate_file):
116
115
 
117
116
  assert mode in ('show', 'replace', 'append')
118
117
  if mode == 'show':
119
-
120
118
  basis_states = data_manager.get_basis_states(n_iter)
121
119
  if basis_states:
122
120
  bstate_file = sys.stdout if not _bstate_file else open(_bstate_file, 'wt')
@@ -57,7 +57,7 @@ class WSucc(CommonOutputMixin, WESTDataReaderMixin, WESTAnalysisTool):
57
57
  # The above HDF5 selection always returns a vector; we want a 2-d array
58
58
  final_pcoords.shape = (len(recycled_seg_ids), pcoord_ndim)
59
59
 
60
- for (ipc, seg_id) in enumerate(recycled_seg_ids):
60
+ for ipc, seg_id in enumerate(recycled_seg_ids):
61
61
  self.output_file.write('%8d %8d %20.14g' % (n_iter, seg_id, seg_index[seg_id]['weight']))
62
62
  fields = ['']
63
63
  for field in final_pcoords[ipc]:
@@ -33,7 +33,6 @@ def parse_pcoord_value(pc_str):
33
33
  def _assign_label_pop(
34
34
  n_iter, lb, ub, mapper, nstates, state_map, last_labels, parent_id_dsspec, weight_dsspec, pcoord_dsspec, subsample
35
35
  ):
36
-
37
36
  nbins = len(state_map) - 1
38
37
  parent_ids = parent_id_dsspec.get_iter_data(n_iter, index_exp[lb:ub])
39
38
  weights = weight_dsspec.get_iter_data(n_iter, index_exp[lb:ub])
@@ -68,7 +68,6 @@ modify the binning for the current iteration of a WEST simulation.
68
68
  rebin_parser.set_defaults(func=self.cmd_rebin)
69
69
 
70
70
  def process_args(self, args):
71
-
72
71
  self.data_reader.process_args(args)
73
72
  self.data_reader.open(mode='r+')
74
73
  self.n_iter = getattr(args, 'n_iter', None) or self.data_reader.current_iteration
@@ -64,7 +64,7 @@ significant analysis tasks).
64
64
  + '\n'
65
65
  )
66
66
  pcoord_lines = ' pcoord[0] = {init_pcoord}\n pcoord[-1] = {final_pcoord}' + '\n'
67
- for (_seg_id, segment) in enumerate(segments):
67
+ for _seg_id, segment in enumerate(segments):
68
68
  parents_str = '[' + ', '.join(map(str, sorted(segment.wtg_parent_ids))) + ']'
69
69
  init_pcoord_str = '[' + ', '.join('{pcval:<12.6g}'.format(pcval=float(pce)) for pce in segment.pcoord[0]) + ']'
70
70
  final_pcoord_str = '[' + ', '.join('{pcval:<12.6g}'.format(pcval=float(pce)) for pce in segment.pcoord[-1]) + ']'
@@ -68,7 +68,6 @@ def _remote_min_max(ndim, dset_dtype, n_iter, dsspec):
68
68
 
69
69
 
70
70
  def _remote_bin_iter(iiter, n_iter, dsspec, wt_dsspec, initpoint, binbounds, ignore_out_of_range):
71
-
72
71
  iter_hist_shape = tuple(len(bounds) - 1 for bounds in binbounds)
73
72
  iter_hist = np.zeros(iter_hist_shape, dtype=np.float64)
74
73
 
@@ -220,7 +219,6 @@ Command-line options
220
219
  self.compress_output = False
221
220
 
222
221
  def add_args(self, parser):
223
-
224
222
  parser.add_argument(
225
223
  '-b',
226
224
  '--bins',
@@ -300,7 +298,6 @@ Command-line options
300
298
  self.compress_output = args.compress or False
301
299
 
302
300
  def go(self):
303
-
304
301
  pi = self.progress.indicator
305
302
  pi.operation = 'Initializing'
306
303
  with pi:
@@ -334,7 +331,6 @@ Command-line options
334
331
 
335
332
  @staticmethod
336
333
  def parse_binspec(binspec):
337
-
338
334
  namespace = {'numpy': np, 'np': np, 'inf': float('inf')}
339
335
 
340
336
  try:
@@ -641,7 +641,6 @@ class WIPI(WESTParallelTool):
641
641
  return self._future
642
642
 
643
643
  class Future(WIPIDataset):
644
-
645
644
  # This isn't a real fancy one.
646
645
  def __getitem__(self, value):
647
646
  if isinstance(value, str):
@@ -156,16 +156,9 @@ Command-line options
156
156
  # Sometimes, we're smaller or larger by one. Hm.
157
157
  try:
158
158
  self.total_walkers[:] += west['summary'][:-1]['n_particles']
159
- except (ValueError):
159
+ except ValueError:
160
160
  self.total_walkers[:] += west['summary'][:-1]['n_particles'][: len(self.total_walkers)]
161
161
 
162
- class Segment:
163
- def __init__(self, weight=0, iteration=0, simid=0, recycled_in=0):
164
- self.weight = weight
165
- self.iteration = iteration
166
- self.simid = simid
167
- self.recycled_in = recycled_in
168
-
169
162
  def go(self):
170
163
  pi = self.progress.indicator
171
164
  self.istates = True # Assume serendipitously istates is same between runs...
@@ -174,7 +167,11 @@ Command-line options
174
167
  self.open_files()
175
168
  self.total_number_of_walkers()
176
169
  if self.auxall is True:
177
- self.aux = list(self.westH5[1]['iterations/iter_00000001/auxdata'].keys())
170
+ try:
171
+ self.aux = list(self.westH5[1]['iterations/iter_00000001/auxdata'].keys())
172
+ except KeyError:
173
+ self.aux = None
174
+ log.warning('No auxdata. Proceeding forward without merging auxdata.')
178
175
  # Create a giant WEST.h5 file, separating the individual walkers, and renormalizing the weights.
179
176
  # It should then be compatible with existing toolsets.
180
177
  # Isn't really going to start with auxdata, but we'll add it in.
@@ -240,7 +237,7 @@ Command-line options
240
237
  self.futr_iter[i] = []
241
238
  self.past_rm[i] = []
242
239
  self.futr_rm[i] = []
243
- print(pi.new_operation('Recreating...', self.niters))
240
+ pi.new_operation('Recreating...', self.niters)
244
241
  # tracker = SummaryTracker()
245
242
  # self.output_file.close()
246
243
 
@@ -262,12 +259,20 @@ Command-line options
262
259
  if addition.dtype != istate_dtype:
263
260
  addition = create_idtype_array(addition)
264
261
  final_istate_index = np.append(final_istate_index, addition)
265
- final_istate_pcoord = np.append(final_istate_pcoord, west['ibstates/0/istate_pcoord'][:])
262
+ final_istate_pcoord = np.append(final_istate_pcoord, west['ibstates/0/istate_pcoord'][:], axis=0)
266
263
 
267
264
  # Saving them into self.output_file
268
265
  self.output_file['ibstates/0'].create_dataset('istate_index', data=final_istate_index, dtype=istate_dtype)
269
266
  self.output_file['ibstates/0'].create_dataset('istate_pcoord', data=final_istate_pcoord)
270
267
 
268
+ # Remaking the ibstates index link
269
+ master_index_row = self.output_file['ibstates/index'][0]
270
+ master_index_row['iter_valid'] = 0
271
+ master_index_row['n_bstates'] = len(self.output_file['ibstates/0/bstate_index'])
272
+ master_index_row['group_ref'] = self.output_file['ibstates/0'].ref
273
+
274
+ self.output_file['ibstates/index'][0] = master_index_row
275
+
271
276
  for iter in range(self.niters):
272
277
  # We have the following datasets in each iteration:
273
278
  # ibstates, which can now be combined with --ibstates
@@ -51,7 +51,6 @@ def _remote_min_max(ndim, dset_dtype, n_iter, dsspec):
51
51
 
52
52
 
53
53
  def _remote_bin_iter(iiter, n_iter, dsspec, wt_dsspec, initpoint, binbounds, ignore_out_of_range):
54
-
55
54
  iter_hist_shape = tuple(len(bounds) - 1 for bounds in binbounds)
56
55
  iter_hist = np.zeros(iter_hist_shape, dtype=np.float64)
57
56
 
@@ -333,7 +333,6 @@ class RateCalculator:
333
333
  return self._dc
334
334
 
335
335
  def calc_rate(self, i_iter=None, red=False, **kwargs):
336
-
337
336
  if i_iter is None:
338
337
  i_iter = self.n_iters
339
338
 
@@ -644,7 +644,6 @@ class WESTRC:
644
644
  return self.work_manager
645
645
 
646
646
  def clear_state(self):
647
-
648
647
  self._sim_manager = None
649
648
  self._system = None
650
649
  self._data_manager = None