Skip to content

Conversation

@jokasimr
Copy link
Contributor

@jokasimr jokasimr commented Sep 1, 2025

Fixes #83

@jokasimr jokasimr requested a review from YooSunYoung September 1, 2025 13:31
@github-project-automation github-project-automation bot moved this to In progress in Development Board Sep 2, 2025
@jokasimr jokasimr moved this from In progress to Selected in Development Board Sep 2, 2025
Comment on lines 49 to 50
upper_nx = 10000
upper_ny = 10000
Copy link
Member

Choose a reason for hiding this comment

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

We don't need this much of resolution. 2048 should be enough.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Is 2048 the maximum resolution?

Copy link
Member

Choose a reason for hiding this comment

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

Per axis, yes.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Made them keyword arguments with default value 2048


def test_finds_maximum_resolution():
events = sc.DataArray(
sc.ones(dims=['events'], shape=(100,)),
Copy link
Member

Choose a reason for hiding this comment

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

The example data should also probably have unit of counts...?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The method doesn't do anything to the values of the data, it only checks how many of them falls into each bin, so the units don't matter.

Copy link
Member

Choose a reason for hiding this comment

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

events should have unit of counts but it shouldn't affect the test I guess...

@jokasimr jokasimr requested a review from YooSunYoung September 8, 2025 07:08
@jokasimr jokasimr merged commit f6ce61b into main Sep 8, 2025
4 checks passed
@jokasimr jokasimr deleted the maximum-resolution-monitory branch September 8, 2025 07:15
@github-project-automation github-project-automation bot moved this from Selected to Done in Development Board Sep 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Fast feedback about the maximum virtual resolution Timepix can achieve from the accumulated counts.

3 participants