Skip to content

Commit b9d138e

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 176f17a commit b9d138e

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/mslice/models/alg_workspace_ops.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,11 @@ def get_number_of_steps(axis):
1313

1414
return int(np.ceil(step_num))
1515

16+
1617
def get_range_end(start, end, width):
1718
return min(start + width, end) if width is not None else end
1819

20+
1921
def get_axis_range(workspace, dimension_name):
2022
workspace = get_workspace_handle(workspace)
2123
return tuple(workspace.limits[dimension_name])

tests/scripting_helperfunctions_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -627,7 +627,7 @@ def test_that_add_cut_lines_with_width_works_as_expected_with_multiple_cuts(self
627627
),
628628
script_lines,
629629
)
630-
630+
631631
self.assertEqual(["cut_ws_0", "cut_ws_1", "cut_ws_2"], ret_val)
632632

633633
def test_show_or_hide_containers_in_script(self):

0 commit comments

Comments
 (0)