Skip to content

look breaking change in 0.26 #284

@MrLixm

Description

@MrLixm

Hello,
I have found that when running the exact same script using rawpy==0.25.1 and rawpy==0.26.0 I get different pixel data.

This can be reproduced with different raw files from different camera brands so it's not linked to the file used.
correction in post below

I am on Windows 10 and haven't tested other platforms.

script to reproduce

from rawpy import __version__
import rawpy._rawpy as rawpy

print(__version__)

SRC_PATH = r"...\P1001570.dng"

raw_file = rawpy.RawPy()
raw_file.open_file(SRC_PATH)
try:
    image_array = raw_file.postprocess()
finally:
    raw_file.close()

print(image_array[0][0])

results

  • with rawpy 0.26.0 installed
0.26.0
[97 25 48]
  • with rawpy 0.25.1 installed
0.25.1
[63  4  1]

I have not yet look at what is causing this issue.
However I can't help but think it's weird how when suddenly AI slop is introduced on the project (mention of Copilot in release note) there instantly a hard-breaking bug. Or maybe this is just an unfortunate coincidence and I'm exaggerating.
Still this is a very cool project and I thank you a lot for maintaining it but please don't add AI slop to it.

Thanks,
Liam.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions