The trial judge did not reverse the burden of proof. It was appropriate in considering the appellant's evidence to look at it in the context of the other evidence. Reasoned acceptance of the prosecution's evidence beyond a reasonable doubt was a basis for rejecting the appellant's evidence.
Now the decision is an endorsement and the full background facts are not set out. That said, it appears inconsistent with W(D)  1 S.C.R. 742. How can the fact the prosecution's evidence is accepted in and of itself make the evidence of the accused less credible? This is a useful case for prosecutors.
As a reminder here is the crucial passage from W(D):
Ideally, appropriate instructions on the issue of credibility should be given, not only during the main charge, but on any recharge. A trial judge might well instruct the jury on the question of credibility along these lines: