Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

*ERROR* num0fBixelPerRays #821

Open
MP1234567899 opened this issue Jan 31, 2025 · 1 comment
Open

*ERROR* num0fBixelPerRays #821

MP1234567899 opened this issue Jan 31, 2025 · 1 comment
Labels

Comments

@MP1234567899
Copy link

Hi

Image

I encountered this error: 'Index exceeds the number of array elements. Index must not exceed 0.' The error occurs in DoseEngines.matRad_DoseEngineBase/calcDoseForward at line 256, where the loop for k = 1:stf(i).numOfBixelsPerRay(j) is executed. I checked that numOfBixelsPerRay is [] in field 2, where the number of rays is 1, and the values in field 1 are small. How can I fix this error, especially since I have 2 phases from a 4DCT, and field 2 is returning [] for numOfBixelsPerRay? Thank you for your help.

@wahln
Copy link
Contributor

wahln commented Jan 31, 2025

This is a bit weird. This might happen when we don't find a matching energy hitting the target.

  • Where is the isocenter located for beam 2? Is it the same as in beam 1?
  • Is the stf generated or loaded from a file? There's a breaking change in v3.1, which interprets the isocenter in the world coordinates (instead of previously using an image-related coordinate system, which was annoying to manage in differently sampled grids).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants