Skip to content

Add check for screens resolutions and observations shapes#63

Open
jp-ga wants to merge 10 commits intomainfrom
62-4d-dataset-plot-is-transposed
Open

Add check for screens resolutions and observations shapes#63
jp-ga wants to merge 10 commits intomainfrom
62-4d-dataset-plot-is-transposed

Conversation

@jp-ga
Copy link
Copy Markdown
Collaborator

@jp-ga jp-ga commented Oct 10, 2025

This PR adds the following attribute to the general ObservableDataset class:
screens: Tuple[Screen, ...]

The motivation for this addition is to check that the resolution of the screens agree with the observations dimensions. This is a good check, especially when using rectangular screens.

NOTE: will probably break code elsewhere since the 'screen : Screen' attribute in QuadScanDataset was replaced by screens: Tuple[Screen].

An alternative to avoid breaking code elsewhere is to add an extra attribute in the QuadScanDataset class as self.screen = self.screens[0], and/or having the possibility of instantiating with a Screen or a Tuple[Screen]

@jp-ga jp-ga linked an issue Oct 10, 2025 that may be closed by this pull request
@jp-ga jp-ga requested a review from roussel-ryan October 10, 2025 01:52
@jp-ga jp-ga added bug Something isn't working documentation Improvements or additions to documentation labels Oct 10, 2025
@jp-ga jp-ga changed the title fix 4d dataset transposition Add 4d dataset observations screens resolution check Oct 13, 2025
@jp-ga jp-ga changed the title Add 4d dataset observations screens resolution check Add check for screens resolutions and observations shapes Oct 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add check for screens resolutions and observations shapes

1 participant