On 31/12/13 01:32, Paul Emsley wrote:
to check for a matching chain, but the output of
align_to_closest_chain() is either 0 or 1.
The matching chain id is present in the console output, but I haven’t
yet figured out how to parse that and do anything useful with it -
the console output does not seem be easily accessible via either
stdout or stderr (was hoping I could redirect the console output to a
file and grep it for the chain id - ugly but I don’t know a better way).
OK, that's a good point.
So the policy is that interesting variables/values should be returned
by functions. In this case it would be good to know the selected
chain-id, but you don't get that - so that's a problem. I'll fix that
now. In future this function will return False or the molecule number
and chain-id.
OK, look out for revision 4867.
Regards,
Paul.