[hotfix] GrasSim: management 'days_since_rotation' update
Summary
On rotationType = 'frequency', days_since_rotation is not updated (+= 1) if day is outside of a rotation period.
Steps to reproduce
use a management.yaml file with 'rotationType: Value: frequency' and more than one rotation period.
Example Project
/
What is the current bug behavior?
days_since_rotation is not updated (+= 1) if day is outside of a rotation period.
What is the expected correct behavior?
days_since_rotation is updated (+= 1) if day is outside of a rotation period.
Relevant logs and/or screenshots
/
Possible fixes
- Place
return Falseafter the for loop. - Add
self.days_since_rotation += 1beforereturn False