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

bugfix/missing-comma-was-creating-a-new-file-format #11

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

evamaxfield
Copy link

Description of Changes

Found while working on napari stuff which tests for png support. If you try to read a PNG directly with this package's Reader, it works! If you try to read a PNG with BioImage, it fails because it doesn't have a plugin listing for "png" but does have one for "pngppm" because if there isn't a comma, Python will combine strings together 🙃🙃🙃.

@evamaxfield
Copy link
Author

I am also mirroring the change made here: AllenCellModeling/aicsimageio#543

In which imageio was bumped to a higher version to handle various ffmpeg differences

@toloudis
Copy link

I wonder if we can get the tests back to green

@evamaxfield
Copy link
Author

I wonder if we can get the tests back to green

Was trying to before I got blocked on time :/ will return to this in ~2 weeks.

@tyler-foster tyler-foster removed their request for review October 1, 2024 17:32
@TimMonko
Copy link

Any way I can help this get through? I'm lazy and weary of using other libraries just for png's.
The only CI failure I see is AssertionError [ERR_ASSERTION]: Unsupported architecture (only x64 is supported) for MacOS. But maybe the logs have expired?
Cheers-

("example.png", "Image:0", (800, 537, 4), "YXS"),
("example.jpg", "Image:0", (452, 400, 3), "YXS"),
("example.gif", "Image:0", (72, 268, 268, 4), "TYXS"),
Copy link
Contributor

Choose a reason for hiding this comment

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

why'd we lose a scene here?

Choose a reason for hiding this comment

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

S is not scene, it's "Samples", as in 3 means RGB and 4 means RGBA

Copy link
Contributor

Choose a reason for hiding this comment

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

oh gotcha my mistake. I think my question persists though. What happened to our 4th sample?

("example.png", "Image:0", (800, 537, 4), "YXS"),
("example.jpg", "Image:0", (452, 400, 3), "YXS"),
("example.gif", "Image:0", (72, 268, 268, 4), "TYXS"),
("example.gif", "Image:0", (72, 268, 268, 3), "TYXS"),
Copy link
Contributor

Choose a reason for hiding this comment

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

for example.gif we have an issue with the reader here.

            elif image_length > 1:
                # Read and stack all frames
                frames = []
                for frame in reader:
                    frames.append(frame)

                image_data = np.stack(frames)

We have a first frame that is uneven
locals

Copy link
Contributor

Choose a reason for hiding this comment

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

@evamaxfield @toloudis any thoughts here? np.stack expects same-size arrays, not sure why the first one is missing a dim.

@BrianWhitneyAI
Copy link
Contributor

Any way I can help this get through? I'm lazy and weary of using other libraries just for png's. The only CI failure I see is AssertionError [ERR_ASSERTION]: Unsupported architecture (only x64 is supported) for MacOS. But maybe the logs have expired? Cheers-

I reran the tests and we seem to be having an issue with the first frame of image data here .

@TimMonko
Copy link

I tried to run tests locally from instructions in contributing.md (just build). My goal was to compare the present example.gif to the aicsimageio example.gif since they appear to be in different servers. However, I get this error:

[INFO: download_test_resources:  79 2024-12-12 11:34:01,094] Downloading test resources using top hash: 3fba62f10af9b4b85dfe07bffdc526a6f8efaea1b7ee7d06f9e9e5613e8339fc
[ERROR: download_test_resources:  95 2024-12-12 11:34:02,244] =============================================
[ERROR: download_test_resources:  99 2024-12-12 11:34:02,246]

S3 AccessDenied for S3Api.HEAD_OBJECT on bucket: bioio-dev-test-resources

[ERROR: download_test_resources: 100 2024-12-12 11:34:02,246] =============================================

Individually running download_test_resources.py also gives this error. Is access to the S3 bucket public? Perhaps there is some other setting I need to do. I have never worked with AWS before.

@BrianWhitneyAI
Copy link
Contributor

I tried to run tests locally from instructions in contributing.md (just build). My goal was to compare the present example.gif to the aicsimageio example.gif since they appear to be in different servers. However, I get this error:

[INFO: download_test_resources:  79 2024-12-12 11:34:01,094] Downloading test resources using top hash: 3fba62f10af9b4b85dfe07bffdc526a6f8efaea1b7ee7d06f9e9e5613e8339fc
[ERROR: download_test_resources:  95 2024-12-12 11:34:02,244] =============================================
[ERROR: download_test_resources:  99 2024-12-12 11:34:02,246]

S3 AccessDenied for S3Api.HEAD_OBJECT on bucket: bioio-dev-test-resources

[ERROR: download_test_resources: 100 2024-12-12 11:34:02,246] =============================================

Individually running download_test_resources.py also gives this error. Is access to the S3 bucket public? Perhaps there is some other setting I need to do. I have never worked with AWS before.

We are working on this right now with our infrastructure team. They are not currently public, though if you open a branch you can run tests from there with the approval of a "Trusted Developer". Hopefully in the next few weeks, these files will all be public...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants