8000 Set default dtype for empty `_ImageSliceResponse` by Czaki · Pull Request #6552 · napari/napari · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Set default dtype for empty _ImageSliceResponse #6552

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

Merged
merged 1 commit into from
Jan 2, 2024
Merged

Conversation

Czaki
Copy link
Collaborator
@Czaki Czaki commented Dec 22, 2023

References and relevant issues

closes #6551

Description

Set default dtype for empty _ImageSliceResponse

@Czaki Czaki added the bugfix PR with bugfix label Dec 22, 2023
@Czaki Czaki added this to the 0.5.0 milestone Dec 22, 2023
Copy link
codecov bot commented Dec 23, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (d507dd6) 92.29% compared to head (9cda00c) 92.25%.
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6552      +/-   ##
==========================================
- Coverage   92.29%   92.25%   -0.05%     
==========================================
  Files         601      601              
  Lines       53687    53686       -1     
==========================================
- Hits        49553    49527      -26     
- Misses       4134     4159      +25     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@psobolewskiPhD
Copy link
Member

As noted here, I couldn't reproduce on my personal Mac:
#6551 (comment)

But I just tested this branch on my work one, that I reported the issue on, and this PR does resolve it.
Switching back to main I get the issue, so it's reproducible on this machine (specs in the issue).

Do we have any other Mac users on Sonoma? I might update my personal Mac over the holidays, so can test again.

@Czaki
Copy link
Collaborator Author
Czaki commented Dec 23, 2023

It is not strictly related to MacOS Sonoma. I have a similar bug when cherry-picking (when do this on Ubuntu). It looks like the order of events may depend on multiple conditions

< 8000 a class="d-inline-block" data-test-selector="pr-timeline-events-actor-avatar" data-hovercard-type="user" data-hovercard-url="/users/Czaki/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="/Czaki">@Czaki Czaki requested a review from andy-sweet December 23, 2023 23:30
Copy link
Member
@andy-sweet andy-sweet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't completely understand the issue described in #6551 and I can't reproduce it either.

But I think this change should be harmless, so approved. I have a small preference for passing through dtype from the layer, but that's needs a more complicated change and I don't think there's much value in it.

@Czaki Czaki added the ready to merge Last chance for comments! Will be merged in ~24h label Dec 26, 2023
@Czaki Czaki merged commit a732227 into napari:main Jan 2, 2024
@Czaki Czaki deleted the fix_6551 branch January 2, 2024 13:03
@Czaki Czaki removed the ready to merge Last chance for comments! Will be merged in ~24h label Jan 2, 2024
kne42 added a commit to kne42/napari that referenced this pull request Jan 4, 2024
* main:
  Use blobs instead of random integers (napari#6527)
  Set default dtype for empty `_ImageSliceResponse` (napari#6552)
  Add creating image from clipboard (napari#6532)
  Fix check if plugin is available from conda (napari#6545)
  Fix generation of layer creation functions docstrings (napari#6558)
  Print a whole stack if throttler is not finished (napari#6549)
  Update `app-model`, `babel`, `coverage`, `dask`, `fsspec`, `hypothesis`, `imageio`, `ipython`, `lxml`, `magicgui`, `pandas`, `pint`, `psutil`, `pydantic`, `pyqt6`, `pytest-qt`, `tensorstore`, `tifffile`, `virtualenv`, `xarray` (napari#6478)
  Minimal changes for mlx (and jax) compatibility for Image layers (napari#6553)
  [pre-commit.ci] pre-commit autoupdate (napari#6528)
  Moving IntensityVisualizationMixin from _ImageBase to Image (napari#6548)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix PR with bugfix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[main, macOS 14?] Making new Labels layer using viewer button is broken
3 participants
0