Skip to content

Commit 4ace11b

Browse files
Merge branch 'main' into pydantic_v2
2 parents 57c8684 + 371bbc0 commit 4ace11b

11 files changed

+955
-652
lines changed

.pre-commit-config.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ repos:
1717
rev: 3.9.2
1818
hooks:
1919
- id: flake8
20+
args: ["--ignore=E203,W503"]
2021
- repo: https://github.com/PyCQA/bandit
2122
rev: '1.7.4'
2223
hooks:

CHANGELOG.md

+11-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
11
**Note**: Numbers like (\#123) point to closed Pull Requests on the fractal-tasks-core repository.
22

3-
# 1.0.3 (unreleased)
3+
# Unreleased
44

5-
* Switch to transitional pydantic.v1 imports, changes pydantic requirement to `>=1.10.16' (\#760).
6-
* Support JSON-Schema generation for `Enum` task arguments (\#749).
7-
* Make JSON-Schema generation tools more flexible, to simplify testing (\#749).
5+
* Tasks:
6+
* Refactor Cellpose Task inputs: Combine Channel inputs & channel normalization parameters (\#738).
7+
* Refactor Cellpose Task inputs: Group advanced Cellpose parameters into the `CellposeModelParams` model that's provided via `advanced_cellpose_model_params` (\#738).
8+
* Refactor Cellpose Task inputs: Support independent normalization of 2 input channels in the Cellpose task (\#738).
9+
* Rename `task.cellpose_transforms` into `tasks.cellpose_utils` (\#738).
10+
* Development:
11+
* Switch to transitional pydantic.v1 imports, changes pydantic requirement to `>=1.10.16' (\#760).
12+
* Support JSON-Schema generation for `Enum` task arguments (\#749).
13+
* Make JSON-Schema generation tools more flexible, to simplify testing (\#749).
814
* Update documentation (\#751).
915

1016
* Documentation:
@@ -15,7 +21,7 @@
1521

1622
# 1.0.2
1723

18-
* Fix bug in plate metadata in MIP task (in the copy_ome_zarr_hcs_plate init function) (\#736).
24+
* Fix bug in plate metadata in MIP task (in the `copy_ome_zarr_hcs_plate` init function) (\#736).
1925

2026
# 1.0.1
2127

fractal_tasks_core/__FRACTAL_MANIFEST__.json

+146-123
Large diffs are not rendered by default.

fractal_tasks_core/channels.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,9 @@ class ChannelInputModel(BaseModel):
109109
110110
Attributes:
111111
wavelength_id: Unique ID for the channel wavelength, e.g. `A01_C01`.
112-
label: Name of the channel.
112+
Can only be specified if label is not set.
113+
label: Name of the channel. Can only be specified if wavelength_id is
114+
not set.
113115
"""
114116

115117
wavelength_id: Optional[str] = None

fractal_tasks_core/dev/lib_args_schemas.py

+16-1
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,24 @@
6464
),
6565
(
6666
"fractal_tasks_core",
67-
"tasks/cellpose_transforms.py",
67+
"tasks/cellpose_utils.py",
6868
"CellposeCustomNormalizer",
6969
),
70+
(
71+
"fractal_tasks_core",
72+
"tasks/cellpose_utils.py",
73+
"CellposeChannel1InputModel",
74+
),
75+
(
76+
"fractal_tasks_core",
77+
"tasks/cellpose_utils.py",
78+
"CellposeChannel2InputModel",
79+
),
80+
(
81+
"fractal_tasks_core",
82+
"tasks/cellpose_utils.py",
83+
"CellposeModelParams",
84+
),
7085
(
7186
"fractal_tasks_core",
7287
"tasks/io_models.py",

fractal_tasks_core/tasks/cellpose_segmentation.py

+102-240
Large diffs are not rendered by default.

fractal_tasks_core/tasks/cellpose_transforms.py

-243
This file was deleted.

0 commit comments

Comments
 (0)