Tag: python

  • Obstetrical care in Iowa

    The third article in Kalen McCain’s excellent series on maternal healthcare in southeastern Iowa, Barriers aren’t limited to birthdays, features a map from numbered page 14 of ACCESS TO OBSTETRICAL CARE IN IOWA: A REPORT to the IOWA STATE LEGISLATURE – CALENDAR YEAR 2021 [PDF]. This got me wondering what it would take to reproduce…

  • Iowa county seats

    I got the coordinates of the county seats using the utility I previously wrote to get California county seats: The generated CSV is now available here: https://github.com/fadend/county_seat_coords/blob/main/county_seat_coords/generated/ia_usa_county_seats.csv. One complication that it doesn’t handle: Lee County has *two* county seats. A little copying pasting from the R code from the other post produced a pretty okay…

  • California geophytes

    On Reddit, bobtheturd said, “Calscape doesn’t do a good job filtering for geophytes, so wondering which are your favorites. I’m in the Bay Area, so more specifically interested in those.” (The post got some interesting replies.) Calscape describes itself like this: “Calscape is California’s hub for California native plants and native plant gardening, created for…

  • Defining a method outside of a Python class

    I’m having some fun reading the source code for Whisper: https://github.com/openai/whisper. One thing I learned from it that delighted (horrified?) me: you can use a function defined outside of a class to provide the implementation for a method. (E.g., used in their Whisper class.) That’s fun. I don’t have a use case in mind yet…

  • California County Seats

    I had some fun today getting the location of each county seat in California. You can see the code here if you’re curious: https://github.com/fadend/county_seat_coords. The data are pulled from Wikipedia’s List of counties in California. I plotted them going through the tutorial here: https://eriqande.github.io/rep-res-eeb-2017/map-making-in-R.html. (Very nice!) Here’s my ugly R code for doing that, shamelessly…

  • Have any of the authors of “Attention Is All You Need” written a book?

    Gemini doesn’t think any of the authors of “Attention Is All You Need” have written a book: Honestly, I didn’t know the answer to this when I asked it. I was curious about this because I was thinking of reading their books if there were some to read. It’s a nice answer at least in…

  • Wayback Machine rescues pytest posts

    I’ve been curious about how pytest‘s assertion rewriting works. (As someone used to Abseil’s testing framework, the usage of bare asserts was a shock.) I was happy to come across a Reddit post: “How does pytest work?”. Unfortunately, the site it points to, pythoninsight.com, seems to be mostly dead. Luckily, the wonderful Wayback Machine has…