Skip to content

use conventions for axes - #223

Merged
KrisThielemans merged 12 commits into
mainfrom
axes
Nov 7, 2026
Merged

KrisThielemans merged 12 commits into
mainfrom
axes

Conversation

@KrisThielemans

@KrisThielemans KrisThielemans commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

Overview of changes

  • model:
    • document axes definitions and constraints for BoxShape and DetectorModule
    • introduce average detection position (ADP) for 511 keV gammas and specify location of detecting elements w.r.t. the ADP
  • helpers:
    • move crystal/module constructors to helpers.geometry (C++: centre module )
    • add get_ADP (convenience function for finding the average detection point)
    • [C++ helpers] some ostream<< overloads for easier printing
  • validation:
    • add basic validation functions for detecting element [python only]
  • add a few py.test unit-tests and run in CI
  • set C++ version to 0.13.0

Important note

The restrictions and order imposed are compatible with the previously existing helpers to construct the scanner.

Fixes #98
Fixes #148
Fixes #170

make sure everything remains float32
convenience function for finding the average detection point
Comment thread model/GeometryInformation.yml Resolved
- use z,y,x ordering to be consistent with DetectorModule
- adapt (and actually fix) is_lex_less
- add some py.test files and run in CI
@KrisThielemans
KrisThielemans merged commit 52e0945 into main Nov 7, 2026
4 checks passed
@KrisThielemans
KrisThielemans deleted the axes branch November 7, 2026 22:22

This branch was successfully deployed

1 active deployment
pypi — 3ea92566 Deployed Nov 7, 2026 by KrisThielemans via build (17, macos) #574
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

C++ generator still needs to centre module impose restrictions on how we specify geometry? box shape needs better definition

1 participant