-
Notifications
You must be signed in to change notification settings - Fork 1
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 when using "too large" interval as parameter in RadonParallelCircle #16
Comments
Ah maybe I should throw errors upon creation of |
Added better error message and updated docstring with |
That should work as well, but in the real world you could also use a large CT-scanner for small things. That's what I wanted to try :D |
Yeah, in this case I guess you need to make the array larger or work around it. |
Better error message will be included soon in 0.6.2. |
Just hit me up you find other sharp edges or errors :) |
Observed behaviour:
when executing
radon(zeros((10,10)), [0, π/4, π/2]; geometry=RadonParallelCircle(10, -5:5))
in my REPL, I get an error which originates from RadonKA/DK5pc/src/utils.jl line 60. My full error message is:possible solution:
As far as I understood the code, it could be enough to just add an
abs()
around the expression that becomes negative for too large values in thein_height
array/range, as x_dist probably(?) should be the distance.The text was updated successfully, but these errors were encountered: