-
Notifications
You must be signed in to change notification settings - Fork 147
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
Fix #894: revert egsphant to egs_brachy encoding #895
Conversation
This is a quick solution, where the encoding is hard-coded in |
All of the material type declarations for each voxel was on a new line in the egsphant, instead of printed in a slice-by-slice grid. My commit just fixed that. |
@blakewalters I added this macro, so you don't have to :) |
Can we try 6bb8618 instead, using |
Sure! I feel like we should be safe to switch to a standard that came out in 1991... |
Just leave the my other commit in the history, in case anyone ever comes to us wanting a version that works on f77. |
I will squash this before merging, but will leave a note in the commit message! |
6bb8618
to
2e057e7
Compare
1896d4a
to
45ac86a
Compare
In the end I reverted to using the implicit array over write(15, '(a1)', advance='no') encoding(code:code) |
45ac86a
to
e4d083e
Compare
Fixed spacing. |
Before merging: fix encoding string length typo in commit message. The encoding is 62 characters, and |
63915e2
to
994a74a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did an "end-to-end" calculation, using ctcreate to generate an .egsphant file with 12 media and then running this through a dosxyznrc simulation and didn't find any issues.
Revert to the egs_brachy encoding for egsphant files, allowing for 62 media encoded with the set of alphanumeric characters (where 0 is reserved for vacuum). Briefly, #633 expanded the number of media in egsphant files to 95, using all printable ascii characters. However, the number of media was also independently expanded in egs_glib for the development of egs_brachy, but using a different encoding consisting of only the 62 alphanumeric ascii characters. This led to inconsistent egsphant files that are no longer interchangeable. This issue was originally reported and discussed in clrp-code/egs_brachy#22.
994a74a
to
9846017
Compare
Squashed the commits into a single one for merging into |
There is still a discrepancy between this encoding and egs_brachy's: this one starts at 0, but egs_brachy's starts at 1. See here. Or did I miss something in the discussion? EDIT: Nevermind, I see it now at the top! My bad! |
Revert to the
egs_brachy
encoding for.egsphant
files, allowing for 63 media encoded with the set of alphanumeric characters (where 0 is reserved for vacuum).Briefly, #633 expanded the number of media in
.egsphant
files to 95, using all printable ascii characters. However, the number of media was also independently expanded inegs_glib
for the development ofegs_brachy
, but using a different encoding consisting of only the 63 alphanumeric ascii characters. This leads to inconsistent egsphant files that are no longer interchangeable.This issue was originally reported and discussed in clrp-code/egs_brachy#22.