Skip to content
Snippets Groups Projects
Commit 68a48772 authored by Lemaire Louis's avatar Lemaire Louis
Browse files

Merge branch '100-hotfix-grassim-management-days_since_rotation-update' into 'develop'

[fix] days_since_rotation is updated if day is outside of a rotation period.

See merge request !15
parents e660aad1 865288dc
No related branches found
No related tags found
2 merge requests!32[feature] New module sky_model with Reinhart sky discretization scheme, water balance correction in GrasSim,!15[fix] days_since_rotation is updated if day is outside of a rotation period.
......@@ -196,7 +196,8 @@ class Management():
else:
self.days_since_rotation = 1
return True
return False
self.days_since_rotation += 1
return False
elif self.config['rotationType'] == "sward_height":
mean_paddock_sward_height = np.mean(crop.sward_height[self.current_mask])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment