bfast icon indicating copy to clipboard operation
bfast copied to clipboard

bfastmonitor doesn't validate inputs

Open mirt001 opened this issue 5 years ago • 2 comments

bfastmonitor silently fails when inputs such as date, or startdate are not logically valid.

mirt001 avatar Nov 01 '20 20:11 mirt001

What does "silently fails" mean? It gives an output that is fake or something? A reprex would be useful.

I'd also argue that it's a bug and not enhancement ;)

GreatEmerald avatar Nov 02 '20 09:11 GreatEmerald

we discussed it privately already, but just for the record. the issue is that there is no sanity check. e.g. you can analyze a dataset spanning from 2010 to 2020 and ask it to check for breaks after 2025. bfastmonitor behaves correctly in the sense that it calculates that there are no breaks after 2025, but I believe it is preferable to not attempt to give an answer to this question.

Whether it's an enhancement, or a bug depends on what the author intended. I have no clue about that, so I was conservative and I assumed that the author intended it to work as it does. I believe it would be better if it would work as I explained, which would make it an enhancement. If you know it's a bug, please relabel.

mirt001 avatar Nov 14 '20 13:11 mirt001