Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/httomo_pypi_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ jobs:
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
- name: Set up Python
- uses: actions/checkout@v5
- name: Set up Python 3.12
uses: actions/setup-python@v4
with:
python-version: "3.11"
python-version: "3.12"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,10 @@ jobs:
steps:
- name: Checkout repository code
uses: actions/checkout@v5

- name: Setup Python 3.12
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Run black
uses: psf/black@stable
2 changes: 1 addition & 1 deletion .github/workflows/tests_httomo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
shell: bash -l {0}
steps:
- name: Checkout repository code
uses: actions/checkout@v4
uses: actions/checkout@v5

- name: Create conda environment
uses: mamba-org/setup-micromamba@v2
Expand Down
2 changes: 1 addition & 1 deletion httomo/transform_layer.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def insert_save_methods(self, pipeline: Pipeline) -> Pipeline:
methods.append(m)
if (
(m.save_result or self._save_all)
and m.method_name not in ["save_to_images", "data_checker"]
and m.method_name not in ["save_to_images", "data_checker"]
and "center" not in m.method_name
):
methods.append(
Expand Down
4 changes: 3 additions & 1 deletion tests/test_transform_layer.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@ def test_insert_save_methods_save_all(mocker: MockerFixture, tmp_path: Path):
assert pipeline[3].task_id == "save_t2"


@pytest.mark.parametrize("method_name", ["save_to_images", "find_center_vo", "data_checker"])
@pytest.mark.parametrize(
"method_name", ["save_to_images", "find_center_vo", "data_checker"]
)
def test_insert_save_methods_does_not_save_for_some_methods(
mocker: MockerFixture, method_name: str, tmp_path: Path
):
Expand Down
Loading