Skip to content

Commit ea55f8a

Browse files
[pre-commit.ci] pre-commit autoupdate (westpa#549)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/psf/black-pre-commit-mirror: 25.12.0 → 26.1.0](psf/black-pre-commit-mirror@25.12.0...26.1.0) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 1808db3 commit ea55f8a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+36
-101
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ repos:
88
types: [python]
99

1010
- repo: https://github.com/psf/black-pre-commit-mirror
11-
rev: 25.12.0
11+
rev: 26.1.0
1212
hooks:
1313
- id: black
1414
language_version: python3

src/westpa/cli/core/w_init.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
import westpa.work_managers as work_managers
1313
from westpa.work_managers import make_work_manager
1414

15-
1615
log = logging.getLogger('w_init')
1716
EPS = np.finfo(np.float64).eps
1817

src/westpa/cli/core/w_run.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
import westpa.work_managers as work_managers
77
from westpa.work_managers import make_work_manager
88

9-
109
log = logging.getLogger('w_run')
1110

1211

src/westpa/cli/core/w_states.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
from westpa.core.segment import Segment
1313
from westpa.core.states import BasisState, TargetState
1414

15-
1615
log = logging.getLogger('w_states')
1716
EPS = np.finfo(np.float64).eps
1817

src/westpa/cli/core/w_succ.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,13 @@ def find_successful_trajs(self):
3232
}
3333

3434
if not self.output_suppress_headers:
35-
self.output_file.write(
36-
'''\
35+
self.output_file.write('''\
3736
# successful (recycled) segments
3837
# column 0: iteration
3938
# column 1: seg_id
4039
# column 2: weight
4140
# column>2: final progress coordinate value
42-
'''
43-
)
41+
''')
4442
for n_iter in range(1, self.data_manager.current_iteration):
4543
seg_index = self.get_seg_index(n_iter)
4644
all_seg_ids = np.arange(len(seg_index), dtype=np.int_)

src/westpa/cli/core/w_truncate.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
import westpa
55

6-
76
log = logging.getLogger('w_truncate')
87

98
warning_string = '''\

src/westpa/cli/tools/ploterr.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def process_args(self, args):
8484

8585
def parse_range(self, rangespec):
8686
try:
87-
(lbt, ubt) = rangespec.split(',')
87+
lbt, ubt = rangespec.split(',')
8888
return float(lbt), float(ubt)
8989
except (ValueError, TypeError) as e:
9090
raise ValueError('invalid range specification {!r}: {!s}'.format(rangespec, e))
@@ -170,7 +170,7 @@ def add_args(self, parser):
170170

171171
def process_args(self, args):
172172
self.output_filename = args.output
173-
(pathname, slicestr) = re.search(r'([^[]+)(\[[^\]]+\])?$', args.dsspec).groups()
173+
pathname, slicestr = re.search(r'([^[]+)(\[[^\]]+\])?$', args.dsspec).groups()
174174
if slicestr:
175175
sl = eval('np.index_exp' + slicestr)
176176
else:

src/westpa/cli/tools/plothist.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ def parse_dimspec(self, dimspec):
205205
if not match:
206206
raise ValueError('invalid dimension specification {!r}'.format(dimspec))
207207

208-
(idim_txt, lb_txt, ub_txt, label) = match.groups()
208+
idim_txt, lb_txt, ub_txt, label = match.groups()
209209
try:
210210
dimdata['idim'] = int(idim_txt)
211211
if lb_txt:
@@ -222,7 +222,7 @@ def parse_dimspec(self, dimspec):
222222

223223
def parse_range(self, rangespec):
224224
try:
225-
(lbt, ubt) = rangespec.split(',')
225+
lbt, ubt = rangespec.split(',')
226226
return float(lbt), float(ubt)
227227
except (ValueError, TypeError) as e:
228228
raise ValueError('invalid range specification {!r}: {!r}'.format(rangespec, e))

src/westpa/cli/tools/w_assign.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ def parse_cmdline_states(self, state_strings):
318318
states = []
319319
for istring, state_string in enumerate(state_strings):
320320
try:
321-
(label, coord_str) = state_string.split(':')
321+
label, coord_str = state_string.split(':')
322322
except ValueError:
323323
label = 'state{}'.format(istring)
324324
coord_str = state_string

src/westpa/cli/tools/w_bins.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
from westpa.tools.binning import write_bin_info
1010

11-
1211
log = logging.getLogger('w_bins')
1312

1413

0 commit comments

Comments
 (0)