Skip to content

added crop to detector config#1709

Merged
dbirman merged 5 commits intodevfrom
feat-1704-crop
Mar 3, 2026
Merged

added crop to detector config#1709
dbirman merged 5 commits intodevfrom
feat-1704-crop

Conversation

@saskiad
Copy link
Copy Markdown
Collaborator

@saskiad saskiad commented Jan 31, 2026

closes #1704

@saskiad saskiad requested a review from dbirman January 31, 2026 00:27
Copy link
Copy Markdown
Member

@dbirman dbirman left a comment

Choose a reason for hiding this comment

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

Before approving I want to check if we need to remove this from the Instrument? If we don't remove it from the device properties then we run into the risk that someone puts values in both the device and in the configuration. Presumably the "rule" is that the configuration overrides the device properties but we don't have much guarantee of that. I lean toward moving things into the acquisition if they are variable like this. What do you think?

@dbirman dbirman enabled auto-merge February 2, 2026 19:32
@saskiad
Copy link
Copy Markdown
Collaborator Author

saskiad commented Mar 3, 2026

I think we discussed this the other week, but want to make sure. We agreed that acquisition overrides instrument when both are provided. I don't think we decided to remove it from the instrument though, did we? I'd like to finish this up if we can.

@dbirman
Copy link
Copy Markdown
Member

dbirman commented Mar 3, 2026

I think we discussed this the other week, but want to make sure. We agreed that acquisition overrides instrument when both are provided. I don't think we decided to remove it from the instrument though, did we? I'd like to finish this up if we can.

Yes we discussed and decided to put it in the acquisition and it's just something you have to know for now, to avoid a breaking change.

For 3.0 we will go through all devices and remove anything that is "configuration" and move it to the acquisition.

@saskiad saskiad requested a review from dbirman March 3, 2026 21:19
@dbirman dbirman added this pull request to the merge queue Mar 3, 2026
Copy link
Copy Markdown
Member

@dbirman dbirman left a comment

Choose a reason for hiding this comment

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

Bunch of linter changes snuck in but the actual content here looks correct to me!

Merged via the queue into dev with commit 26c8420 Mar 3, 2026
5 checks passed
@dbirman dbirman deleted the feat-1704-crop branch March 3, 2026 21:41
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.

Add crop settings to camera/detector config

2 participants