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.
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.
ok. I'll try that
There was a problem hiding this comment.
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.
I don't understand.
The formatting needs to follow the standard, what does the standard say about the length?
|
SonarCloud Quality Gate failed.
|
|
SonarCloud Quality Gate failed.
|











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.