scottgullaksen / bergenvann-summer-project

Analysis of Bergen Vanns sensor data for maintanance evaluation purposes
0 stars 0 forks source link

[Task] Day out of range error in reader class #33

Closed scottgullaksen closed 4 years ago

scottgullaksen commented 4 years ago

After the combine path step in __get_paths_to_basenames function in data/reader.py a day out off range error occurs. The following call was made to produce the error: image

Thoughts

scottgullaksen commented 4 years ago

Update: the error is due to the addition of new data: Theres now available date until the last day of june 2020, aka day 30. This is combined with february which never has this day of the month.

Solution: use try-except in __path _to_date. use last day of month if exception raised