
2025-07-20 16:34:48
Zawsze cieszy, kiedy autorzy paczki zaakceptują trywialną poprawkę, mimo że oczywisty błąd w kodzie w danej chwili ich nie dotyka.
#Gentoo
Zawsze cieszy, kiedy autorzy paczki zaakceptują trywialną poprawkę, mimo że oczywisty błąd w kodzie w danej chwili ich nie dotyka.
#Gentoo
Dear #lazyweb,
I think I've reached the limit of #matplotlib trying to graph the forks from a #git repository. What I want to to plot the slowly growing trunk and then show the relative sizes o…
#Matplotlib has a lot of "image comparison tests" that are horrible fragile. Technically, most of them permit some deviation from the reference images, but quite often I've been getting higher RMS than that. So for a long time, we've been maintaining patches that increased the tolerance in tests, and regularly either had to be rebased and updated for new tests.
At some point upstream started adding conditions permitting higher tolerance on non-x86_64 platforms. Of course, these changes forced me to rebase our patches. Curious enough, my previous overrides often happened to be close to the tolerance given for non-x86_64 platforms.
Today, it finally occurred to me that instead of updating the patch once again, I can try dropping it entirely and just sed-ing all `platform.machine() == 'x86_64'` with `False`. And guess what — down to 3 failures (related to TeΧ). And I don't have to spend 15 minutes manually doing what effectively accounted to the same thing.
#Gentoo #Python
Okay, spent a little time with Python's Matplotlib to get this graph of miles biked so far this year...
At some point I should be able to pull the data from Run Gap's SQLite database to automate this more, and get more granular.
I still need to figure out how to space the bars and some other formatting stuff but it's a good start!
#python
#Matplotlib ma sporo testów opartych o "porównywaniu grafik", które często się sypią. Technicznie rzecz biorąc, większość z nich dopuszcza pewien odchył od obrazów referencyjnych, ale całkiem często dostałem większe wartości RMS. Tak więc przez długi czas musieliśmy utrzymywać spore łatki, które zwiększały tolerancję w tych testach, i regularnie wymagały aktualizacji.
W pewnym mome…
I think I’ll be using matplotlib today…