Skip to content

Conversation

@bruno-f-cruz
Copy link
Member

This PR adds a new qc routine to the Camera suite that shows saturated pixels in all channels of the image.

To reproduce:

from contraqctor.contract.camera import Camera, CameraParams
from contraqctor.qc import Runner
from contraqctor.qc.camera import CameraTestSuite

camera = Camera(
    "camera",
    reader_params=CameraParams(
        path=r"\\allen\aind\scratch\bruno.cruz\808728_2025-10-10T161409Z\behavior-videos\FaceCamera"
    ),
)

suite = CameraTestSuite(camera)

runner = Runner()
camera.load_all()
runner.add_suite(suite)

results = runner.run_all_with_progress()

for test in results[None]:
    if isinstance(test.context, dict) and "asset" in test.context.keys():
        test.context["asset"].asset.savefig(f"{test.test_name}.png")

@bruno-f-cruz
Copy link
Member Author

@rachelstephlee This is what I was going to add for post-hoc qc in case you have thoughts

@bruno-f-cruz
Copy link
Member Author

Closes #73

@bruno-f-cruz bruno-f-cruz changed the base branch from main to dev October 13, 2025 19:52
@bruno-f-cruz bruno-f-cruz merged commit b3bcce4 into dev Oct 13, 2025
7 of 9 checks passed
@bruno-f-cruz bruno-f-cruz deleted the add-camera-pixel-saturation branch October 13, 2025 20:30
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.

2 participants