Skip to content

Fix custom-geometry and on-the-fly reconstruction errors in deteCT - #200

Merged
AnderBiguri merged 1 commit into
CambridgeCIA:mainfrom
cslht:fix/detect-dataloader-errors
Aug 6, 2026
Merged

Fix custom-geometry and on-the-fly reconstruction errors in deteCT#200
AnderBiguri merged 1 commit into
CambridgeCIA:mainfrom
cslht:fix/detect-dataloader-errors

Conversation

@cslht

@cslht cslht commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Three fixes in deteCT.py for custom geometry and on-the-fly reconstruction paths:

  • np.array_equal comparisons replaced 4 ambiguous comparisons (e.g. geometry_params == self.get_default_geometry()), which crashed with ValueError on custom geometry; np.array_equal handles geometry objects correctly.
  • next(angle_iterator) can return None if the angle subset is exhausted; added a default so the reconstruction does not raise on an empty stream.
  • deteCT.get_operator() called an instance method on the class in the reconstruction path; now self.get_operator(), so it uses the current instance geometry.

@AnderBiguri
AnderBiguri merged commit 1d02f2a into CambridgeCIA:main Aug 6, 2026
1 check passed
cslht11 pushed a commit to cslht11/LION that referenced this pull request Sep 6, 2026
…errors

Fix custom-geometry and on-the-fly reconstruction errors in deteCT
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