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

ADD: Tool to measure DetectorToReference transforms #91

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

keiranbarr
Copy link
Collaborator

Little standalone file to measure the DetectorToReference transforms for each detector. Takes config file specifying detectors and reference board. Outputs the same file* but with the transforms added.

  • NOTE: the formatting is getting changed when I write to the new json file, and I can't figure out how to make it the same as the input file. But the actual content is the same.

Should address #85

data/measure_detector_to_reference_config.json Outdated Show resolved Hide resolved
src/util/measure_detector_to_reference.py Outdated Show resolved Hide resolved
src/util/measure_detector_to_reference.py Show resolved Hide resolved
src/util/measure_detector_to_reference.py Outdated Show resolved Hide resolved
new_filepath = os.path.join(dir,new_filename)

with open(new_filepath, 'w') as file:
# TODO: Make this data look more clean when dumped to file
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume you are referring to the lists of floating points? The coordinates showing up on three different lines rather than all on one line?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes this is what I am referring to, same as the below comment.


with open(new_filepath, 'w') as file:
# TODO: Make this data look more clean when dumped to file
# Also have marker corner positions as floats and not ints
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure why this would be the case. What do you mean by corner positions?

@keiranbarr
Copy link
Collaborator Author

Now included in this PR is some improvements that @vaughantnrc made on my own branch, as well as general improvements to the src.slicer_connection module.

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