examples/python/Vision_files_preprocess.py: #1593
Conversation
…Siemens Biograph Vision files to STIR-compatible format
|
@casperdcl could you have a quick look at formatting of comments at the start? Not sure what the recommended way of doing this is. (I'd rather avoid |
Co-authored-by: Kris Thielemans <[email protected]>
casperdcl
left a comment
There was a problem hiding this comment.
If this is the kind of feedback you meant...
|
Codacy flags up some issues at https://app.codacy.com/gh/UCL/STIR/pull-requests/1593/issues.
|
|
Thanks @casperdcl. These suggestions look good to me. @NicoleJurjew how do you want to do this? Easiest might be to let @casperdcl commit them, and then you try it out (after MIC deadline!). If it doesn't work, we either remove the commit, or fix it... |
|
Hi both, thanks for your help, I'll have a look at it next week then! Nicole |
|
The remaining issues should be v. easy to fix :) |
|
Hi both, Thanks for your help, I've fixed most of the codacy issues now. At first I was surprised by the trailing whitespace issues codacy flagged because I'm using pre-commit, but I'm guessing they occur because there is no rule for python code in the .pre-commit-config.yaml file. I've tried adding it, such that pre-commit fixes my white-space errors automatically:
But it ended up modifying 468 files across the repo, so I decided not to include it. I'm afraid I don't know how to fix that, but I thought I'd bring it to your attention in case you want to prioritise it. Nicole |
KrisThielemans
left a comment
There was a problem hiding this comment.
great. one tiny comment. Please commit with "[ci skip]" in title.
yes, this is on our list. I'm a bit surprised that that particular hook modifies so many files (all C++ files should have been handled already) but fine. As before, I think we will need to create those hooks in 2 stages, such that we can let "git blame" ignore these automatic changes. thanks! |
|
By the way, I see VS Code reformatted the html as well. @casperdcl if you know about a good hook for that... |
KrisThielemans
left a comment
There was a problem hiding this comment.
@casperdcl it's ready to merge for me.
casperdcl
left a comment
There was a problem hiding this comment.
fine by me; depending on your squash/rebase preferences
|
@NicoleJurjew can I delete the branch? |
|
Yes, of course!
…________________________________
From: Kris Thielemans ***@***.***>
Sent: 12 May 2025 14:18
To: UCL/STIR ***@***.***>
Cc: Jurjew, Nicole ***@***.***>; Mention ***@***.***>
Subject: Re: [UCL/STIR] examples/python/Vision_files_preprocess.py: (PR #1593)
⚠ Caution: External sender
[https://avatars.githubusercontent.com/u/6362141?s=20&v=4]KrisThielemans left a comment (UCL/STIR#1593)<#1593 (comment)>
@NicoleJurjew<https://github.com/NicoleJurjew> can I delete the branch?
—
Reply to this email directly, view it on GitHub<#1593 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AUSFUBWAZDMLG665OPN3A5T26CNTDAVCNFSM6AAAAAB4JUW7MGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDQNZSGU2DONRVG4>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Added python script to convert e7tools generated sinograms from the Siemens Biograph Vision 600 to STIR-compatible format
Checklist before requesting a review
documentation/release_XXX.mdhas been updated with any functionality change (if applicable)