Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Review "UserWarning: Pydantic serializer warnings: Expected int but got int64" in cellvoyager-to-ome-zarr init task #824

Open
tcompa opened this issue Aug 29, 2024 · 0 comments
Labels
Backlog Backlog issues we may eventually fix, but aren't a priority

Comments

@tcompa
Copy link
Collaborator

tcompa commented Aug 29, 2024

When running example01 of fractal-demos within fractal-containers, I observe the warning at the end of 0_convert_cellvoyager_to_ome_zarr/0.log:

2024-08-29 08:05:35,845; INFO; START cellvoyager_to_ome_zarr_init task
2024-08-29 08:05:35,845; INFO; [glob_with_multiple_patterns] include_patterns=['*.png']
2024-08-29 08:05:35,845; INFO; [glob_with_multiple_patterns] Found 4 items
2024-08-29 08:05:35,845; INFO; Creating 20200812-CardiomyocyteDifferentiation14-Cycle1.zarr
2024-08-29 08:05:35,845; INFO; Start open_zarr_group_with_overwrite (overwrite=True).
2024-08-29 08:05:35,858; INFO; Zarr group /home/fractal_share/fractal-demos-v2/examples/01_cardio_tiny_dataset/output_cardiac-tiny/20200812-CardiomyocyteDifferentiation14-Cycle1.zarr does not exist yet.
2024-08-29 08:05:35,878; INFO; Read /home/fractal_share/fractal-demos-v2/examples/01_cardio_tiny_dataset/../images/10.5281_zenodo.8287221/MeasurementData.mlf, apply following include patterns to image filenames: None apply the following exlcude patterns to image filenames: None
2024-08-29 08:05:35,898; INFO; Expected number of images for well B03: 4
2024-08-29 08:05:35,900; INFO; removing FOV overlaps for well='B03'
2024-08-29 08:05:35,902; INFO; [glob_with_multiple_patterns] include_patterns=['20200812-CardiomyocyteDifferentiation14-Cycle1_*.png']
2024-08-29 08:05:35,902; INFO; [glob_with_multiple_patterns] Found 4 items
2024-08-29 08:05:35,902; INFO; [glob_with_multiple_patterns] include_patterns=['20200812-CardiomyocyteDifferentiation14-Cycle1_B03_*.png']
2024-08-29 08:05:35,902; INFO; [glob_with_multiple_patterns] Found 4 items
/home/fractal_share/tasks/.fractal/fractal-tasks-core1.3.0/venv/lib/python3.10/site-packages/pydantic/main.py:364: UserWarning: Pydantic serializer warnings:
  Expected `int` but got `int64` - serialized value may not be as expected
  return self.__pydantic_serializer__.to_python(
2024-08-29 08:05:35,929; INFO; END cellvoyager_to_ome_zarr_init task

Here is, for the record, the workflow.log file:

2024-08-29 08:05:34,198 - WF1_job1 - INFO - Start execution of workflow "Workflow cardiac-tiny"; more logs at /home/fractal_share/artifacts/proj_v2_0000001_wf_0000001_job_0000001_20240829_080534/workflow.log
2024-08-29 08:05:34,198 - WF1_job1 - DEBUG - fractal_server.__VERSION__: 2.3.10
2024-08-29 08:05:34,198 - WF1_job1 - DEBUG - FRACTAL_RUNNER_BACKEND: local_experimental
2024-08-29 08:05:34,198 - WF1_job1 - DEBUG - job.id: 1
2024-08-29 08:05:34,198 - WF1_job1 - DEBUG - job.working_dir: /home/fractal_share/artifacts/proj_v2_0000001_wf_0000001_job_0000001_20240829_080534
2024-08-29 08:05:34,198 - WF1_job1 - DEBUG - job.working_dir_user: /home/fractal_share/artifacts/proj_v2_0000001_wf_0000001_job_0000001_20240829_080534
2024-08-29 08:05:34,198 - WF1_job1 - DEBUG - job.first_task_index: 0
2024-08-29 08:05:34,198 - WF1_job1 - DEBUG - job.last_task_index: 3
2024-08-29 08:05:34,198 - WF1_job1 - DEBUG - START workflow "Workflow cardiac-tiny"
2024-08-29 08:05:34,200 - WF1_job1 - DEBUG - SUBMIT 0-th task (name="Convert Cellvoyager to OME-Zarr")
2024-08-29 08:05:38,610 - WF1_job1 - DEBUG - END    0-th task (name="Convert Cellvoyager to OME-Zarr")
2024-08-29 08:05:38,610 - WF1_job1 - DEBUG - SUBMIT 1-th task (name="Project Image (HCS Plate)")
2024-08-29 08:05:40,876 - WF1_job1 - DEBUG - END    1-th task (name="Project Image (HCS Plate)")
2024-08-29 08:05:40,876 - WF1_job1 - DEBUG - SUBMIT 2-th task (name="Cellpose Segmentation")
2024-08-29 08:07:04,269 - WF1_job1 - DEBUG - END    2-th task (name="Cellpose Segmentation")
2024-08-29 08:07:04,269 - WF1_job1 - DEBUG - SUBMIT 3-th task (name="Napari Workflows Wrapper")
2024-08-29 08:07:07,626 - WF1_job1 - DEBUG - END    3-th task (name="Napari Workflows Wrapper")
2024-08-29 08:07:08,312 - WF1_job1 - INFO - End execution of workflow "Workflow cardiac-tiny"; more logs at /home/fractal_share/artifacts/proj_v2_0000001_wf_0000001_job_0000001_20240829_080534/workflow.log
2024-08-29 08:07:08,312 - WF1_job1 - DEBUG - END workflow "Workflow cardiac-tiny"

I could not quickly identify the relevant int field. My first guess (unverified) is that this concerns bit_depth (which comes from a pandas DataFrame), and then affects channel.window.max (which is expected to be an int, in the Window model).

@tcompa tcompa added the Backlog Backlog issues we may eventually fix, but aren't a priority label Aug 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Backlog Backlog issues we may eventually fix, but aren't a priority
Projects
Development

No branches or pull requests

1 participant