Merge branch 'feature/bug_report_form' into 'master'
Check for nan values on probabilistic exposure Closes #295 See merge request caimira/caimira!420
This commit is contained in:
commit
1290f57deb
1 changed files with 2 additions and 0 deletions
|
|
@ -223,6 +223,8 @@ def non_zero_percentage(percentage: int) -> str:
|
|||
return "<0.01%"
|
||||
elif percentage < 1:
|
||||
return "{:0.2f}%".format(percentage)
|
||||
elif np.isnan(percentage):
|
||||
return "99.9%"
|
||||
else:
|
||||
return "{:0.1f}%".format(percentage)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue