westpa 2022.9__cp311-cp311-macosx_10_9_x86_64.whl → 2022.11__cp311-cp311-macosx_10_9_x86_64.whl

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.

westpa/_version.py CHANGED
@@ -8,11 +8,11 @@ import json
8
8
 
9
9
  version_json = '''
10
10
  {
11
- "date": "2024-05-22T14:48:11-0400",
11
+ "date": "2024-07-02T19:19:53-0400",
12
12
  "dirty": false,
13
13
  "error": null,
14
- "full-revisionid": "ce236bb304b11302a982af2ecb1f8cbb403d09f4",
15
- "version": "2022.09"
14
+ "full-revisionid": "a2d390ea5ff8681246351e21a0bdeaeedc00f366",
15
+ "version": "2022.11"
16
16
  }
17
17
  ''' # END VERSION_JSON
18
18
 
@@ -1,5 +1,5 @@
1
- import argparse
2
1
  import logging
2
+ from argparse import ArgumentParser
3
3
 
4
4
  import westpa
5
5
 
@@ -14,7 +14,7 @@ traj_segs directory) is deleted or moved for the corresponding iterations.
14
14
 
15
15
 
16
16
  def entry_point():
17
- parser = argparse.ArgumentParser(
17
+ parser = ArgumentParser(
18
18
  'w_truncate',
19
19
  description='''\
20
20
  Remove all iterations after a certain point in a WESTPA simulation.
@@ -30,7 +30,7 @@ def entry_point():
30
30
  metavar='WEST_H5FILE',
31
31
  help='''Take WEST data from WEST_H5FILE (default: read from the HDF5 file specified in west.cfg).''',
32
32
  )
33
- parser.add_argument('-n', '--iter', dest='n_iter', type=int, help='Truncate this iteration and those following.')
33
+ parser.add_argument('-n', '--iter', dest='n_iter', type=int, default=0, help='Truncate this iteration and those following.')
34
34
 
35
35
  args = parser.parse_args()
36
36
  westpa.rc.process_args(args, config_required=False)
@@ -40,7 +40,15 @@ def entry_point():
40
40
 
41
41
  dm.open_backing()
42
42
  # max_iter = dm.current_iteration
43
- n_iter = args.n_iter if args.n_iter > 0 else dm.current_iteration
43
+
44
+ if args.n_iter > dm.current_iteration:
45
+ parser.error(
46
+ 'Provided iteration {} > current iteration {} of the {} HDF5 file. Exiting without doing anything.'.format(
47
+ args.n_iter, dm.current_iteration, dm.we_h5filename.split('/')[-1]
48
+ )
49
+ )
50
+ else:
51
+ n_iter = args.n_iter if args.n_iter > 0 else dm.current_iteration
44
52
 
45
53
  for i in range(n_iter, dm.current_iteration + 1):
46
54
  dm.del_iter_group(i)
@@ -48,8 +56,9 @@ def entry_point():
48
56
  dm.del_iter_summary(n_iter)
49
57
  dm.current_iteration = n_iter - 1
50
58
 
51
- print('simulation data truncated after iteration {}'.format(dm.current_iteration))
52
- print('\n' + warning_string)
59
+ westpa.rc.pstatus('simulation data truncated after iteration {}'.format(dm.current_iteration))
60
+ westpa.rc.pstatus('\n' + warning_string)
61
+ westpa.rc.pflush()
53
62
 
54
63
  dm.flush_backing()
55
64
  dm.close_backing()
westpa/core/h5io.py CHANGED
@@ -18,7 +18,6 @@ from tables import NaturalNameWarning
18
18
 
19
19
  from mdtraj import Trajectory, join as join_traj
20
20
  from mdtraj.utils import in_units_of, import_, ensure_type
21
- from mdtraj.utils.six import string_types
22
21
  from mdtraj.formats import HDF5TrajectoryFile
23
22
  from mdtraj.formats.hdf5 import _check_mode, Frames
24
23
 
@@ -554,7 +553,7 @@ class WESTIterationFile(HDF5TrajectoryFile):
554
553
  node = self._get_node(where='/', name=name)
555
554
  data = get_item(node, slice)
556
555
  in_units = node.attrs.units
557
- if not isinstance(in_units, string_types):
556
+ if not isinstance(in_units, str):
558
557
  in_units = in_units.decode()
559
558
  data = in_units_of(data, in_units, out_units)
560
559
  return data
@@ -278,7 +278,7 @@ class ExecutablePropagator(WESTPropagator):
278
278
  self.data_info['log'] = {'name': 'seglog', 'loader': seglog_loader, 'enabled': store_h5, 'filename': None, 'dir': False}
279
279
 
280
280
  # Grab config from west.executable.datasets, else fallback to west.data.datasets.
281
- dataset_configs = config.get(["west", "executable", "datasets"], config.get(['west', 'data', 'datasets'], {}))
281
+ dataset_configs = config.get(["west", "executable", "datasets"]) or config.get(['west', 'data', 'datasets'], {})
282
282
  for dsinfo in dataset_configs:
283
283
  try:
284
284
  dsname = dsinfo['name']
Binary file
@@ -66,10 +66,10 @@ else:
66
66
  cm_pdr = matplotlib.colors.LinearSegmentedColormap('pdr', _pdr_data, 2048)
67
67
  cm_pdr_r = cm_pdr.reversed()
68
68
 
69
- matplotlib.cm.register_cmap('pdr', cm_pdr)
70
- matplotlib.cm.register_cmap('pdr_r', cm_pdr_r)
71
- matplotlib.cm.register_cmap('hovmol', cm_hovmol)
72
- matplotlib.cm.register_cmap('hovmol_r', cm_hovmol_r)
69
+ matplotlib.colormaps.register(cmap=cm_pdr, name='pdr')
70
+ matplotlib.colormaps.register(cmap=cm_pdr_r, name='pdr_r')
71
+ matplotlib.colormaps.register(cmap=cm_hovmol, name='hovmol')
72
+ matplotlib.colormaps.register(cmap=cm_hovmol_r, name='hovmol_r')
73
73
 
74
74
  del cmap_data
75
75
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: westpa
3
- Version: 2022.9
3
+ Version: 2022.11
4
4
  Summary: WESTPA is a package for constructing and running stochastic simulations using the "weighted ensemble" approach of Huber and Kim (1996).
5
5
  Home-page: http://github.com/westpa/westpa
6
6
  License: MIT
@@ -1,6 +1,6 @@
1
- westpa/_version.py,sha256=LSHAM8jJ_erxibgj4h2_PXTivKwOfg1ZL92b--rsRXo,499
1
+ westpa/_version.py,sha256=tWQgWvkf-J3h5mOX5Li8wSan3MM-AjT2sxSxH6w8Obk,499
2
2
  westpa/__init__.py,sha256=xyNfYIcP2ncBLu_foO1NKmJrQh8-uYdwvMuM0HsOG1M,329
3
- westpa/fasthist/_fasthist.cpython-311-darwin.so,sha256=G0wZno2Zw7MbxSQDZPBuAXRTWns9I8jUblfVWvFrIdo,246408
3
+ westpa/fasthist/_fasthist.cpython-311-darwin.so,sha256=UjOx2l2AfI8sdTCSa1NEZDYfLp52HXdTzGK4xtjI9kI,246408
4
4
  westpa/fasthist/__init__.py,sha256=oWj0gKEkKfHjGHwkzmpgAxDz55h2ze_sqQVzWSsOP6s,1071
5
5
  westpa/fasthist/__main__.py,sha256=7XCBZvrKbBG3KEuQMpZD0jXa3vVMEVfZJTG8MmdbsrM,3902
6
6
  westpa/westext/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -40,7 +40,7 @@ westpa/core/textio.py,sha256=lqohyyyfMTkFvTdQ8V45yUpASiJsWTh42XAG15K63dA,2434
40
40
  westpa/core/extloader.py,sha256=yxyJN-lHo3Zjd6jS6_uhC1fIl52H-h8sbV9zYJfEWGg,2239
41
41
  westpa/core/sim_manager.py,sha256=eeCg5dALUyZ_Rm1eRRBSOpR_0UDBnyQlBvPkWY4IlzE,38653
42
42
  westpa/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
43
- westpa/core/h5io.py,sha256=8oFrvNMFejgFGzxbcaHmdRqEd-PWjnOgyGjdI1Tdnb8,37128
43
+ westpa/core/h5io.py,sha256=s3_Rt8ZjvCpumyDMKctQl406dmo8muRiHHd0L34Qtyk,37077
44
44
  westpa/core/trajectory.py,sha256=DL7rsowKxBc1jwT7FPZFlfCWKuwagttZxd3SPgxZKU0,10913
45
45
  westpa/core/segment.py,sha256=Gd_5htIZ6xKxxCms9XMtJncehGvMVxZeNdy4drxrnpc,4421
46
46
  westpa/core/progress.py,sha256=tEDDn-JPY6ZNzYqyrdgA7peo7pDu8kOMvqfyiHWUgps,6753
@@ -50,11 +50,11 @@ westpa/core/yamlcfg.py,sha256=B78OEr1n_sIkW6kDzl3FO63tiugaT-1VutAgLxU0i7A,12696
50
50
  westpa/core/kinetics/matrates.py,sha256=1sf7L6ojLE8yT2sFfgeB8eqgjMHdMK2O_Xgyz_RjCzc,5554
51
51
  westpa/core/kinetics/events.py,sha256=VqYBN5rVOf3hAYUA6xQ6UN7GP6tVgRFIoP69tfGhkTo,6511
52
52
  westpa/core/kinetics/__init__.py,sha256=djtiki7X5-IEzwjwswbdgrolwUIzVAHKxCiI5B3WH28,510
53
- westpa/core/kinetics/_kinetics.cpython-311-darwin.so,sha256=bR5LamkSsDzWpBjVECzrPlc1ZBHrV_ML-VvnyX4FT6Q,387512
53
+ westpa/core/kinetics/_kinetics.cpython-311-darwin.so,sha256=OzRNG2sC5j0PqlQdwYwCNcccg3-KW3cHauwIjwFYoKA,387512
54
54
  westpa/core/kinetics/rate_averaging.py,sha256=gIKDXBAOSDI6KythepoC4QipUPksTRBc9zbM7DRtwo4,10300
55
55
  westpa/core/binning/binless_driver.py,sha256=T5qWpLnjxCS9RdKeWf7eVCC_s6TQFDENL7X3VG6JIYo,2231
56
56
  westpa/core/binning/mab_driver.py,sha256=azSqc9pqHk_zc1ptGNjXARDbK-UAnPVmCiYwebi5mPY,2223
57
- westpa/core/binning/_assign.cpython-311-darwin.so,sha256=Yv7lYh6by5Fl0snIhrYtNirzP_OFeNzcfCvsjaFgY4c,264480
57
+ westpa/core/binning/_assign.cpython-311-darwin.so,sha256=A-lyxVdQQ4JQA6cB8Qz3fqFlp3vlOXAwz_21BCehQqw,264480
58
58
  westpa/core/binning/binless.py,sha256=Fb9TI5swQntzXjmlWFbYQ9yjzjLxDKNVVdmRxRqOnIY,4056
59
59
  westpa/core/binning/__init__.py,sha256=XmjBP6fg_id_vDELkcWW3u2GeuL5OPWblvX-kc7mINk,1297
60
60
  westpa/core/binning/mab_manager.py,sha256=-bb9CdSXrx6XV8NWHa6Q1CTWVaGa4coAZn_lDlvHCkM,9815
@@ -64,16 +64,16 @@ westpa/core/binning/mab.py,sha256=X7L1jx--nNJTNA-PeJGDpwSa2PDMoMb4OtLpjffXQ4A,16
64
64
  westpa/core/binning/bins.py,sha256=WDj7DNX3MTVkRvkgAooa9G8VThxw32uIfMTuk9sS194,1460
65
65
  westpa/core/reweight/matrix.py,sha256=219sRxkML1V9niPIndSoRvJAC0fUmpG0PLDKpmfWW-g,5509
66
66
  westpa/core/reweight/__init__.py,sha256=8goYojsHMcJCZblBC2sc2fcj-NUNVEstbSLswKNlVfg,284
67
- westpa/core/reweight/_reweight.cpython-311-darwin.so,sha256=Rc3ETz8Ja06s1O-4qVQ9nCairrv94xpyBYiPNYGuaaI,303264
67
+ westpa/core/reweight/_reweight.cpython-311-darwin.so,sha256=7O7qCRpA-O2vXAaHOeAG0-hi7YR2ZaM2fJghw2GXO0o,303264
68
68
  westpa/core/propagators/__init__.py,sha256=rx_kkeg3Tbb_rI0uhLGCD3OwSYj9QuhxF8QGN3mILrg,2373
69
- westpa/core/propagators/executable.py,sha256=6YuNMZ7if4jGtZ2OV0k_7jmBvtHFfdaIX-LLQJ_KIc8,32201
69
+ westpa/core/propagators/executable.py,sha256=yYextknWycTtyUTFMNyIt6EeLblMdWOJM7YJ4FsZ93E,32203
70
70
  westpa/analysis/__init__.py,sha256=CcmVPCB9OSEib0mJ4U-s9v3nrj4h-T_9AGApAbPnn8I,268
71
71
  westpa/analysis/core.py,sha256=rZ7xcrskpPwy2lrB27gXT4mSQRbqnPj9D8yA-Utve-M,22426
72
72
  westpa/analysis/statistics.py,sha256=M3Gj1bOiAu_SA4upR7gENYEOP2gnIEaSOZeGyoIxAc8,789
73
73
  westpa/analysis/trajectories.py,sha256=jyrbbKOVyZ3GjHQushDS_G8C4IRXlUmxa-WzmEEVGwc,12878
74
74
  westpa/mclib/__init__.py,sha256=NskP81wKw-tHTniyJ8QbgKAHah5JdpCrnPKJo1T-nLw,11513
75
75
  westpa/mclib/__main__.py,sha256=cKqfE9koMcrHkslEPpFISA4Eblwl0mllaxn7pFeyX1A,881
76
- westpa/mclib/_mclib.cpython-311-darwin.so,sha256=i0EPM8vloPwBFYJxnREC2xVGo_O7Mo_HBDgWRorrqYc,246144
76
+ westpa/mclib/_mclib.cpython-311-darwin.so,sha256=KmlWfftO7z1aSBwi3rPMyw7lS2DyvZoi6ADW8Q8kATU,246144
77
77
  westpa/cli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
78
78
  westpa/cli/tools/w_direct.py,sha256=5Z9eQpvpKM-40XdiI0L3t0O3jpjMx7tk8ndYAaJxvrc,22361
79
79
  westpa/cli/tools/w_dumpsegs.py,sha256=uv0WxvKGauyW6VT3zGyALUXVqSXwDrhwbF3ZVSJV9Mo,3952
@@ -102,12 +102,12 @@ westpa/cli/core/w_fork.py,sha256=UZVY6nUdMRRbKPfNFGAfEAu7tVhu7NewopPdQ0s8cz8,569
102
102
  westpa/cli/core/w_states.py,sha256=Fkr0WdUut59vPtj0_TZWAmY5_qf5H_WsoiusO7Slz50,9433
103
103
  westpa/cli/core/w_run.py,sha256=9fLOJjCYQadB28gdsKwGxwjJtSB5u0DRITzAWmL3rJg,2159
104
104
  westpa/cli/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
105
- westpa/cli/core/w_truncate.py,sha256=-CHFOBr4NAZwGQ8-O5F7B0dPowpnFpm-mF9Us1gBgfo,1654
105
+ westpa/cli/core/w_truncate.py,sha256=QdIwMespZD69t3tDkqC1bZRo4CICs18ShlVXYSeFPd8,2030
106
106
  westpa/cli/core/w_init.py,sha256=V_CvlAuq8flg-zUO01sbMGYkLqrEDD4DU9sV90bYFus,8793
107
107
  westpa/cli/core/w_succ.py,sha256=ZK1MHHu7t53VdBrRgJUe7b1R8DnhMKPjHOqbbOjC_As,3074
108
108
  westpa/trajtree/__init__.py,sha256=K64Ok5bUP-fXo1H2rigJqxCnm-U23tJlRngNOnzR3gs,96
109
109
  westpa/trajtree/trajtree.py,sha256=sLf4kTi0QyvFdbSR__YcPwOR2wcOxtlkC4IPUFcq-9M,4497
110
- westpa/trajtree/_trajtree.cpython-311-darwin.so,sha256=L3zfWXIZDjNu2bkKR2m8JeFkHzA1lxDAyOwxlnGP0H4,131000
110
+ westpa/trajtree/_trajtree.cpython-311-darwin.so,sha256=RuP1OjinWsi43HK_pVCr7EaEapEvSy651s5cP7Ui9jY,131000
111
111
  westpa/oldtools/files.py,sha256=JmLtZqxD88cybEHcOU6kodAeOJYxylpYFl4OQqU13Hs,944
112
112
  westpa/oldtools/miscfn.py,sha256=595W28JazmiU9ioDgOKU9ZxtXJue_q-8WcpOKTgkikQ,909
113
113
  westpa/oldtools/__init__.py,sha256=rxAxsQNQMADy5j8xrqW_7Vk3D9ajM7lfDjHaKQHRDTI,62
@@ -115,7 +115,7 @@ westpa/oldtools/cmds/w_ttimes.py,sha256=Ny_l_N7k__4eE71h9ugpk_jr6VZbDH3p4lylFzzl
115
115
  westpa/oldtools/cmds/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
116
116
  westpa/oldtools/aframe/binning.py,sha256=L259HcIn-1Qz1AKUWBXjZ3HFE0odry7OZf-aG070fSE,7565
117
117
  westpa/oldtools/aframe/atool.py,sha256=5_ZkivLChU1wMaEvI-F7i-huMRYg2Dy8AH36eivWI0Y,2185
118
- westpa/oldtools/aframe/plotting.py,sha256=nyAPzSGQPfjcA7d-nDAsi2ewr3aFenJDHeVkSElDixo,2421
118
+ westpa/oldtools/aframe/plotting.py,sha256=2XZwZRzH_Fr-9xctoGy0txU7LUwF_BnCUF4MUsIh4UQ,2469
119
119
  westpa/oldtools/aframe/trajwalker.py,sha256=mXkLMg3aIBo76fogCXZs3xNwpTc9Y6qfHNIEhYRIERg,5540
120
120
  westpa/oldtools/aframe/__init__.py,sha256=1MMuHYaL790Y1bh7NU3gweTYRIr2xgR1U9bmNrJVrSM,1047
121
121
  westpa/oldtools/aframe/data_reader.py,sha256=nuIkR-vFRW_stcXwcjMSZI1RO73By-x-phfTrlD73Jc,20927
@@ -141,10 +141,10 @@ westpa/work_managers/zeromq/__init__.py,sha256=rrl4YbEaZr2AiEBTMlhvEFH83dBlAwWR_
141
141
  westpa/work_managers/zeromq/core.py,sha256=K3Iyrz5u2Dy-GgZFL3ZXDN2iaaLm7qL-A3cm4PdBiF8,22907
142
142
  westpa/work_managers/zeromq/work_manager.py,sha256=UB_WvnejDRVi1ZU2QWpP9uzhnccOH7b3qHgU-wSstTY,22425
143
143
  westpa/work_managers/zeromq/node.py,sha256=CeoJhXVqrZxrV3lMnDtm3LNkGFxjS4dr3E6wd7ZQRTE,4877
144
- westpa-2022.9.dist-info/RECORD,,
145
- westpa-2022.9.dist-info/LICENSE,sha256=I2wUldIRJmflTYUxmSiITSZEKvlovlMPrE3JU5IslkY,1074
146
- westpa-2022.9.dist-info/AUTHORS,sha256=YMi91-Fs-vFgZKUaItfh20uXthT9oe2Kq6CQXmqMGqg,671
147
- westpa-2022.9.dist-info/WHEEL,sha256=3Ij8bI-sb8yCMxXItr4MLlNoRGZb2WoUxQe9xIFR_DQ,111
148
- westpa-2022.9.dist-info/entry_points.txt,sha256=0Ym8meKTdYbUEMtUHF_4zaZP__4ldfFnoYXyYlKRB6s,1428
149
- westpa-2022.9.dist-info/top_level.txt,sha256=otaLnQtwo9jKCJmja4iOOsOVDThUvPfjJaeLrgGEhlE,7
150
- westpa-2022.9.dist-info/METADATA,sha256=rqV52tmwSCbCr7PszXjXvfBm-by3neUyWB1QCZViw-4,7562
144
+ westpa-2022.11.dist-info/RECORD,,
145
+ westpa-2022.11.dist-info/LICENSE,sha256=I2wUldIRJmflTYUxmSiITSZEKvlovlMPrE3JU5IslkY,1074
146
+ westpa-2022.11.dist-info/AUTHORS,sha256=YMi91-Fs-vFgZKUaItfh20uXthT9oe2Kq6CQXmqMGqg,671
147
+ westpa-2022.11.dist-info/WHEEL,sha256=tiABefSBUedU9YCr1NdKrBy4Ki45oQg3rWot6FlXaMY,110
148
+ westpa-2022.11.dist-info/entry_points.txt,sha256=0Ym8meKTdYbUEMtUHF_4zaZP__4ldfFnoYXyYlKRB6s,1428
149
+ westpa-2022.11.dist-info/top_level.txt,sha256=otaLnQtwo9jKCJmja4iOOsOVDThUvPfjJaeLrgGEhlE,7
150
+ westpa-2022.11.dist-info/METADATA,sha256=ZNUuNk0-tU-eHAT3nKAXC1KnqXbsj-P-vuEiaFXy2ZA,7563
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.43.0)
2
+ Generator: setuptools (70.2.0)
3
3
  Root-Is-Purelib: false
4
4
  Tag: cp311-cp311-macosx_10_9_x86_64
5
5