-
Notifications
You must be signed in to change notification settings - Fork 15
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
Pseudoatoms #664
base: devel
Are you sure you want to change the base?
Pseudoatoms #664
Conversation
(float)(atoms[n].location(1)*sampling), | ||
(float)(atoms[n].location(0)*sampling), | ||
(float)intensity); | ||
if (n+1 < 10000) |
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.
Why? You can print both with %5d
and it will be justified to right with no leading zeros.
If you need justification to right, you can use %-5d
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.
ok. I'll try that
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.
oh, right. The reason is I wanted to use the 5th column only if I need it. Probably, that's unnecessary complexity though.
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 don't understand.
The formatting needs to follow the standard, what does the standard say about the length?
SonarCloud Quality Gate failed. 0 Bugs No Coverage information |
SonarCloud Quality Gate failed. 0 Bugs No Coverage information Catch issues before they fail your Quality Gate with our IDE extension SonarLint |
This makes volumes to pseudoatoms write a proper pdb file that other programs such as prody and the rest of xmipp can read.
For example, xmipp_reduce_pseudoatoms makes a mess with the current files because of having the first digit of the residue number being in the chain field as the zeros in between then get removed. With the fix applied to the input file, the test actually gives a more sensible result.