Skip to content

Commit

Permalink
Merge branch 'develop' into bump_docs_deps
Browse files Browse the repository at this point in the history
  • Loading branch information
Czaki authored Jan 22, 2024
2 parents 244ee44 + b003a95 commit 4cea553
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ repos:
- id: setup-cfg-fmt
args: ["--include-version-classifiers", "--max-py-version", "3.11"]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.9
rev: v0.1.14
hooks:
- id: ruff
- repo: https://github.com/asottile/pyupgrade
Expand Down
4 changes: 2 additions & 2 deletions package/tests/test_PartSegCore/test_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ def perform_roi_info_history_test(
alt2[alt2 > 0] = i + 5
roi_info2 = ROIInfo(
roi=project.roi_info.roi,
annotations={i: f"a{i}_{j}" for j in range(1, 5)},
annotations={j: f"a{i}_{j}" for j in range(1, 5)},
alternative={f"test{i}": alt2},
)
history.append(
Expand All @@ -257,7 +257,7 @@ def perform_roi_info_history_test(
assert set(roi_info3.alternative) == {f"test{i}"}
assert np.all(roi_info3.alternative[f"test{i}"][alt1 > 0] == i + 5)
assert np.all(roi_info3.alternative[f"test{i}"][alt1 == 0] == 0)
assert roi_info3.annotations == {i: f"a{i}_{j}" for j in range(1, 5)}
assert roi_info3.annotations == {j: f"a{i}_{j}" for j in range(1, 5)}
assert proj2.history[i].roi_extraction_parameters == {"algorithm_name": f"task_{i}", "values": {"a": 1}}


Expand Down

0 comments on commit 4cea553

Please sign in to comment.