Remove condition causing empty leccalc/ordleccalc output files when using period weights and user-defined return periods
A leftover condition statement resulted in miscalculation of the maximum return period. The maximum return period is used to determine losses corresponding to user-requested return periods, and as the maximum return period was set at 0, all requested return periods lay beyond this maximum and were not calculated. Removing this conditional has solved the issue.
Remove condition causing empty leccalc/ordleccalc output files when using period weights and user-defined return periods
A leftover condition statement resulted in miscalculation of the maximum return period. The maximum return period is used to determine losses corresponding to user-requested return periods, and as the maximum return period was set at 0, all requested return periods lay beyond this maximum and were not calculated. Removing this conditional has solved the issue.