Skip to content

Commit bbd132b

Browse files
committed
linting
1 parent a7a9c85 commit bbd132b

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

httomo_backends/scripts/yaml_pipelines_generator.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,14 @@
3333

3434
CS = ruamel.yaml.comments.CommentedSeq # defaults to block style
3535

36+
3637
class SweepRange:
3738
"""SweepRange class."""
3839

3940
def __init__(self, start, stop, step):
4041
self._start, self._stop, self._step = start, stop, step
4142

43+
4244
def __sweeprange_representer(
4345
dumper: yaml.SafeDumper, swp: SweepRange
4446
) -> yaml.nodes.MappingNode:
@@ -52,6 +54,7 @@ def __sweeprange_representer(
5254
},
5355
)
5456

57+
5558
class SweepManual:
5659
"""SweepManual class."""
5760

tests/test_httomolibgpu.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,9 +117,7 @@ def test_normalize_memoryhook(flats, darks, ensure_clean_memory, dtype, slices):
117117
@pytest.mark.cupy
118118
def test_remove_outlier_memoryhook(flats, ensure_clean_memory, dtype, slices):
119119
hook = MaxMemoryHook()
120-
data = cp.random.random_sample(
121-
(slices, 2560, 2560), dtype=np.float32
122-
)
120+
data = cp.random.random_sample((slices, 2560, 2560), dtype=np.float32)
123121
if dtype == "uint16":
124122
data = data.astype(np.uint16)
125123
with hook:

0 commit comments

Comments
 (0)