fixed calculate_R when no production_ratios
Merge remote-tracking branch 'origin/release/release-2.0.0' into release/release-2.0.0