Root/scanner rotation changes#1016
Conversation
… printing This involves changes to - the coordinates to now use 2D numpy arrays - the print tables now print the position and offset (for loop changes were needed for sizing of every entry etc...), not perfect. - Use more arrays everywhere, instead of lists.
aa6b4b7 to
b5707ac
Compare
robbietuk
left a comment
There was a problem hiding this comment.
The removal of offset (num of detectors) and quarter_of_detectors works in the tests now with the rotations in GATE geometry. All our GATE geometries should be updated (thinking STIR-GATE-Connection).
KrisThielemans
left a comment
There was a problem hiding this comment.
Currently using
#if STIR_ROOT_ROTATION_AS_V4
this is non-standard. Replace with using #ifdef as usual. This obviously means that it shouldn't be set by default (I guess you currently set it to 0).
I think the user's guide need some more tweaks but first want to understand Gate macro options better (see comment in the geometry.mac).
You've enabled the test, but it cannot work yet as no data?
|
Forgot to write my question on the geometry. You've used rotation of the GATE scanner This is nice, but I do wonder if an alternative solution isn't to modify the placement I haven't checked of course. |
Also removes all mention of commented out ellopsoid parameters
Correct the z shift between STIR and GATE from 75.21 mm to 75.31 mm.
- Fix issue with `round_sig(x)` function when 0 is input. - Update README with more details of DebugScripts - Comment out `generate_image` from pretest because it is never used. The test was changed to use the `generate_image` class in C++.
…de review) Co-authored-by: Kris Thielemans <[email protected]>
|
@francescaleek If you fancy taking a look that would be useful 😄 I optimised almost everything about this test now. The last thing I need to check now is if we can remove the rotation of the cylicricalPET and construct it so the first GATE module is on y axis (x=0). |
- release_5.0.htm: moved text on ROOT rotation to "backwards incompatibility" section, with some minor tweaks - STIR User's guide: - expanded the section on ROOT, including translation - added brief info on CMake variables - corrected some text on C++ version
|
I've updated the documentation a bit more. @robbietuk please check if you're happy with it. This seems good to merge. The test is enabled though, which means we'd have to download the data, otherwise ctest/GitHub Actions will fail. zenodo is one option. Adding it to git is another but it'd have to be quite small (preferably less than 2MB). I guess you could see if you |
|
The data is uploaded to https://zenodo.org/record/6410309 I am working on CMAKE downloads. Do we want to use something like |
|
Okay, I am stuck because of my lack of Cmake knowledge. I think the tools are all here but I cant get |
|
I don't know about the In SIRF, we use something which is simply, but also a bit of a pain in that it downloads the data even if you don't test. Still, I think putting that into place should be quite easy. We can presumably replace it later if there's smarter stuff around. have a look at I guess we might have to unzip, but CMake can do that as well https://cmake.org/cmake/help/latest/command/file.html#archive-extract but thi sseems to require CMAke 3.18, so I guess better to download one by one if that's possible. |
|
In that case, I wont go into usage of the I uploaded each file so we have to download 16 files... It doesnt look pretty but the hash keys are annoying. Good enough for a GHA test |
|
we're not currently installing if you tell me that this works on your system, we could merge this, and try to get CI going in a separate PR. |
|
I forgot there were no GHA tests for root, at least it works without ROOT 😄 It works nicely on my machine. |
|
worked on mine! |

Fix for #938 and extension of #991
test_view_offset_roottestquarter_of_detectorsfrom deterctor position when reading of ROOT files in STIRoffset (num of detectors)from all ROOT headers