Wlodarski / DR-Altimeter

Altitude 'Dead Reckoning' for Casio Triple Sensor v.3
MIT License
0 stars 0 forks source link

One hour missing when data straddles the hour #4

Closed Wlodarski closed 4 years ago

Wlodarski commented 4 years ago

DR-Altimeter.log

Wlodarski commented 4 years ago

Testing a possible solution but it will take a while because the bug is sporadic and depends on Wunderground. Cannot be simulated.

Wlodarski commented 4 years ago

Discovered and reported a bug in matplotlib : https://github.com/matplotlib/matplotlib/issues/16631

Wlodarski commented 4 years ago

Pull request sent to https://github.com/matplotlib/matplotlib/issues/16631

Wlodarski commented 4 years ago

At matplotlib, their procedure to squash bugs is not working for them: they are working for it. They are killing what works trouble free with what keeps them occupied. They are deprecating IndexFormatter without any backward compatibility planned.

Any way, for the best, thinking of the future, I am completely rewriting DR-Altitude to get rid of IndexFormatter. I am replacing it with from matplotlib.dates import HourLocator, MinuteLocator, DateFormatter. This means also I am switching from a index-based logic to a datetime-based logic.

Wlodarski commented 4 years ago

Will know soon whether the switch to date-based logic solves that bug also.

Wlodarski commented 4 years ago

Resolved with date-based logic

Wlodarski commented 4 years ago

Related to https://github.com/Wlodarski/DR-Altimeter/issues/6