# Logbook of code changes

**URL:** <https://community.panodata.org/t/logbook-of-code-changes/16>\
**Category:** The workbench\
**Created:** [October 2, 2019, 11:00pm UTC](https://community.panodata.org/t/logbook-of-code-changes/16 "2019-10-02T23:00:58Z")\
**Posts on this page:** 20\
**Page:** 360

<div class="post-metadata">

**Author:** ![git](https://community.panodata.org/user_avatar/community.panodata.org/git/32/8_2.png) [@git](https://community.panodata.org/u/git)\
**Post date:** [September 21, 2026, 5:43am UTC](https://community.panodata.org/t/logbook-of-code-changes/16/7188 "2026-09-21T05:43:24Z")

</div>

> <https://github.com/earthobservations/wetterdienst/commit/dc5a5eed53e049bc9ad58ba410f46687910a51c6>
>
> \#1935 taught the provider registry to say which package is missing and which ext…ra installs it.
> Three paths do not go through it and still handed over a bare traceback: \`wetterdienst restapi\`
> (fastapi), \`.interpolate()\` (utm), and the radar HDF5 dump (h5py). Each named the package, none said
> what to do about it, and each has an extra that would have.
> 
> The helper that reads extras out of the installed metadata moves from api.py to util/extras.py,
> since it is about extras rather than about the registry, and grows the message the four sites now
> share. The registry's own wording is unchanged, and the names are still read from the metadata, so
> an extra that gains or loses a package cannot leave a stale instruction behind.
> 
> Where several extras install the same package the caller's own is named: h5py belongs to both knmi
> and radar, and telling someone reading radar files to install the KNMI extra is true and no help.
> The hint is honoured only where the metadata agrees that the extra installs the package, so a
> renamed extra falls back to what is actually there rather than to a name that no longer exists.
> 
> One structural change: the radar module imported h5py and h5netcdf at module level for a single
> annotation on a nested function. With deferred annotations both move inside it, so importing that
> module no longer needs the radar extra at all -- only dumping a file does.
> 
> Tests cover the metadata lookup over six packages, the caller's-extra preference and its fallback,
> an ImportError carrying no module name, and each of the three sites driving its real code path with
> the import made to fail.
> 
> Closes #1938.

---

<div class="post-metadata">

**Author:** ![git](https://community.panodata.org/user_avatar/community.panodata.org/git/32/8_2.png) [@git](https://community.panodata.org/u/git)\
**Post date:** [September 21, 2026, 6:44am UTC](https://community.panodata.org/t/logbook-of-code-changes/16/7189 "2026-09-21T06:44:31Z")

</div>

> <https://github.com/earthobservations/wetterdienst/commit/c8bc2fe7ead92ab4d879d80447dd60452dfa7cef>
>
> post\_file retried a connection that never carried a response, and took every res…ponse that did
> arrive as an answer. A 401 is indeed an answer. A 502 or 503 from a token endpoint is a blip, and
> the request that meets one is the one least able to afford failing: a token is minted once every
> three days, and get\_ceda\_token returning None empties a whole Met Office query rather than one file
> of it.
> 
> download\_file had the opposite problem: it retried any failing status, so a 429 was answered by
> asking again a tenth of a second later -- against a provider that had just said it was rate-limiting
> a free account.
> 
> Both now ask the same question of an error and give the same answer. A connection that carried
> nothing, a body that stopped arriving, a timeout and a 5xx are worth a second attempt; a response
> that answers the question is not. A missing file stays retryable for downloads alone, a file index
> being read minutes before the files it names, so a listing that has raced a publication is asked
> once more before the file is believed gone. stamina takes a predicate for exactly this -- its own
> docs give retrying 5xx but not 4xx as the example.
> 
> The 429 change costs nothing where it most applies: AEMET has its own retry loop with a real
> backoff, and its docstring already says download\_file's generic one is not enough to clear a rate
> limit. That loop now sees the 429 after one request rather than two.
> 
> Every branch of the policy is pinned by mutation, against a stand-in server that answers 502 once
> and then a token, rate-limits, and promises a hundred bytes while sending nine. Three things came
> along: post\_file's docstring now says it retries and that this assumes a post safe to make twice;
> the comment on the in-loop credential scrub is corrected, a retried 5xx having made that scrub the
> only thing keeping an Authorization header out of stamina's retry log; and the test server moved out
> of its fixture into a module-level handler.
> 
> Closes #1939.

---

<div class="post-metadata">

**Author:** ![git](https://community.panodata.org/user_avatar/community.panodata.org/git/32/8_2.png) [@git](https://community.panodata.org/u/git)\
**Post date:** [September 21, 2026, 3:41pm UTC](https://community.panodata.org/t/logbook-of-code-changes/16/7190 "2026-09-21T15:41:55Z")

</div>

> <https://github.com/panodata/omniload/commit/3e56ebc7b2d61b137877b011b7e807825c40ca0a>

---

<div class="post-metadata">

**Author:** ![git](https://community.panodata.org/user_avatar/community.panodata.org/git/32/8_2.png) [@git](https://community.panodata.org/u/git)\
**Post date:** [September 21, 2026, 9:57pm UTC](https://community.panodata.org/t/logbook-of-code-changes/16/7191 "2026-09-21T21:57:32Z")

</div>

> <https://github.com/earthobservations/wetterdienst/commit/fc0d94beddc7519adc554c6f3e0b62f8aa9a8ab5>
>
> The rule that marks a sensor holding one value for six hours already finds KM's …stopped sensors --
> but only where the request covered six hours to find them in. Measured against one hour of the whole
> network, 809 stations and 11505 temperature readings, it marks nothing for the two stations sitting
> at -75.00 C: five readings where it needs twenty-four. The same hour asked over twelve marks them on
> every reading. A caller asking for an hour is told nothing, and -75 C is not a reading that needs six
> hours of context to judge.
> 
> So a temperature below -60 C is marked suspect whatever window was asked for, and in that same hour
> all ten of those readings are. Germany's record low air temperature is -45.9 C, at a sinkhole that
> traps cold, and a road surface tracks the air rather than running far beneath it: the line stands
> 14 K under that record and 29 K above the world's.
> 
> \-30.00 and -25.00 stay with the run rule, which can tell a stopped sensor from a cold night by
> whether it moves -- both are reachable on a German road in winter, and this is why GH-1917's
> sentinel-matching was rejected. No line is drawn at the warm end either: a road surface in July sun
> passes 60 C, and the 79.8 C of the issue is implausible rather than impossible. The reading is kept
> exactly as DWD published it; only quality says anything about it.
> 
> The quantities judged are named for being temperatures rather than borrowed from the stuck rule,
> which names the same three for another reason entirely -- a humidity added there would be below any
> line drawn in kelvin, and a test adds one to prove this rule does not follow. The page now carries a
> section per check, saying which readings each marks and which it leaves, and the eighteen tests of
> the stuck-sensor family no longer skip themselves where eccodes is absent: they build a frame and
> call one polars function.
> 
> Closes #1917.

---

<div class="post-metadata">

**Author:** ![git](https://community.panodata.org/user_avatar/community.panodata.org/git/32/8_2.png) [@git](https://community.panodata.org/u/git)\
**Post date:** [September 21, 2026, 10:44pm UTC](https://community.panodata.org/t/logbook-of-code-changes/16/7192 "2026-09-21T22:44:33Z")

</div>

> <https://github.com/earthobservations/wetterdienst/commit/1bae2c653a9266b06e56b066af8fdf44a441f399>
>
> Three catalogs appended the English "Flags" to a translated compound --
> "Nieders…chlagsart-Flags", "Nedderslagsform-Flags", "Nidderschlagsform-Flags" -- where each of them
> already says Kennung or Kennen sixteen times over, in its quality entries. Each now uses its own
> word, and only the borrowed word changes: the catalog decided the wording, not a guess at another
> language.
> 
> The other eight were right as they stood. What GH-1919 reads as an inconsistency -- six catalogs
> saying "flag" and five saying "indicator" -- is eight languages each using the word it uses
> everywhere else in the file: vlag in Dutch, příznak in Czech, indicador in Spanish. A reader of one
> of those languages meets the same word here as in every quality entry, which is the consistency that
> matters. Danish saying nedbørsform where the key says type, and Dutch saying neerslagtype where its
> sibling says vorm, are each consistent within their own catalog too.
> 
> Whether "flag" is the right register at all is left alone deliberately: every catalog uses a flag
> word for its sixteen quality entries, so changing it here would make this the odd one out. That is a
> decision about seventeen entries in eleven catalogs.
> 
> A unit test holds every catalog to its own word, for every entry that names a flag, singular or
> plural. The words are written down rather than derived -- deriving them means guessing at compounds
> and plurals in eleven languages, which is what went wrong here to begin with. Italian is written
> down twice, its plural changing the ending rather than appending to it, and Low German as \`kennen\`
> rather than the \`kenn\` it shares with Standard German, which is the drift that catalog is likeliest
> to suffer. The labels are counted against the keys, so one entry rewritten with double quotes cannot
> drop out of the check unnoticed, and a locale added later has to say what its word is.
> 
> What still wants a speaker: whether Low German forms the compound as \`Kennen\`. Its own \`Gütenkennen\`
> is the only evidence the file offers.
> 
> Closes #1919.

---

<div class="post-metadata">

**Author:** ![git](https://community.panodata.org/user_avatar/community.panodata.org/git/32/8_2.png) [@git](https://community.panodata.org/u/git)\
**Post date:** [September 22, 2026, 2:08pm UTC](https://community.panodata.org/t/logbook-of-code-changes/16/7193 "2026-09-22T14:08:58Z")

</div>

> <https://github.com/panodata/omniload/commit/f6726e987974eac9c83462e87d8727490111967f>
>
> Relocate \`src/dlt\_filesystem\` to \`packages/dlt-filesystem/src/dlt\_filesystem\`
> an…d \`tests/dlt\_filesystem\` to \`packages/dlt-filesystem/tests\`, so the package
> has somewhere to carry its own project metadata and a dlt user can install the
> readers without omniload's dependency list.
> 
> Give \`packages/dlt-filesystem\` its own project metadata, so the filesystem and
> blob stack installs as \`dlt-filesystem\` without omniload's dependency list: 136
> distributions against 250.
> 
> No install line a user has already run changes what it resolves to. \`omniload\`,
> \`omniload\[filesystem\]\`, \`omniload\[iterable\]\` and \`omniload\[full\]\` each resolve to
> the same distribution set as before, measured either side of the move, because the
> two extras now forward to the new project. A \`\[tool.uv\]\` workspace source keeps a
> contributor's editable install on the local tree while published metadata carries a
> plain \`Requires-Dist: dlt-filesystem\`, read out of the built sdist rather than
> inferred from the configuration.
> 
> The base dependency carries no version specifier, and that is measured rather than
> omitted. Both projects take their version from the same git tag through versioningit,
> so an exact pin cannot be written into a static dependency list at all; and a
> specifier on a workspace member is not enforced locally, since \`uv pip compile\`
> resolves \`dlt-filesystem==99.0.0\` against the local tree and exits 0. What lockstep
> actually claims is one version per tag for both projects, which \`tests/main/
> test\_distribution\_pair.py\` pins instead.
> 
> Everything else follows the move:
> 
> \- The install hints a missing long-tail decoder prints name \`dlt-filesystem\[iterable\]\`,
> which is the extra that now supplies it, and the five tests that assert those strings
> move with them. A temporary object's name prefix follows too.
> \- The standalone import probe reads the package's own \`\[project.dependencies\]\` rather
> than reconstructing the set from the consumer's extras, and stages the package from
> its new source root. It still exits 1 on an \`import omniload\` injected into the tree.
> \- ruff is told both source roots, so \`dlt\_filesystem\` stays a first-party import and
> the move does not reorder every module that touches it. The moved test tree keeps the
> exemptions every test tree here has.
> \- The fake-GCS container helper moves to \`tests/warehouse/\`, its only caller. Nothing in
> the package's own tests used it, and it was the last thing reaching across the boundary.
> \- The Arrow construction sweep and the write-format documentation check resolve their
> paths for the new depth. The first follows the package and still sweeps the consumer
> when both sit in one checkout; the second stays pointed at the repository root and
> skips where there is no documentation tree to compare against.
> 
> \`omniload\` now depends on \`dlt-filesystem\`, so every path that builds one has to
> build the other.

---

<div class="post-metadata">

**Author:** ![git](https://community.panodata.org/user_avatar/community.panodata.org/git/32/8_2.png) [@git](https://community.panodata.org/u/git)\
**Post date:** [September 22, 2026, 10:52pm UTC](https://community.panodata.org/t/logbook-of-code-changes/16/7194 "2026-09-22T22:52:23Z")

</div>

> <https://github.com/panodata/omniload/commit/2eabfc7e724a5ce543787a1564991e01538b4357>
>
> Supports local and remote locations with local staging.
> 
> \`read\_vortex\` resolves …every item through one staging helper. A plain
> local file is read in place. Anything else, remote or gzipped on any
> filesystem, is copied through the item's own \`open(compression="auto")\`,
> which is what decompresses \`.vortex.gz\` and reuses the source's
> authentication, and the source handle closes once the copy is done. An
> item the reader cannot open now raises, where it used to re-read the
> previous file's rows. \`chunksize\` reaches the scan as \`batch\_size\`, with
> one slice loop kept as the cap.
> 
> \`write\_vortex\` takes the registry's \`str\` path, and writes a datetime with
> a fixed UTC offset as the same instant in UTC.
> 
> Tests cover gzipped local and remote reads, per-file remainders, the
> chunk cap, the missing-item case and fixed offsets. The missing-extra
> paths are tested outside the Vortex module, which skips without the
> package, and a new check ties the \`ReadersSource\` typing stub to the
> registry so a reader cannot be registered without its stub entry.
> 
> \---------
> 
> Co-authored-by: coderabbitai\[bot\] \<136622811+coderabbitai\[bot\]@users.noreply.github.com\>
> Co-authored-by: TiM \<tim@nuimarkets.com\>

---

<div class="post-metadata">

**Author:** ![git](https://community.panodata.org/user_avatar/community.panodata.org/git/32/8_2.png) [@git](https://community.panodata.org/u/git)\
**Post date:** [September 22, 2026, 11:10pm UTC](https://community.panodata.org/t/logbook-of-code-changes/16/7195 "2026-09-22T23:10:57Z")

</div>

> <https://github.com/panodata/omniload/commit/41dbe60bbf679a4ba8d88613a826d8ffe2f21ae8>

---

<div class="post-metadata">

**Author:** ![git](https://community.panodata.org/user_avatar/community.panodata.org/git/32/8_2.png) [@git](https://community.panodata.org/u/git)\
**Post date:** [September 22, 2026, 11:35pm UTC](https://community.panodata.org/t/logbook-of-code-changes/16/7196 "2026-09-22T23:35:18Z")

</div>

> <https://github.com/panodata/omniload/commit/c63fe2e6705345b5e9a1ed97e0895c161575fb1a>

---

<div class="post-metadata">

**Author:** ![git](https://community.panodata.org/user_avatar/community.panodata.org/git/32/8_2.png) [@git](https://community.panodata.org/u/git)\
**Post date:** [September 23, 2026, 6:00am UTC](https://community.panodata.org/t/logbook-of-code-changes/16/7197 "2026-09-23T06:00:34Z")

</div>

> <https://github.com/earthobservations/wetterdienst/commit/30d0c4d4eff13313968d356e56e2a926f570ac47>
>
> \* fix(dwd): read a mosmix run by one rule, and answer a directory that holds non…e
> 
> \`get\_url\_for\_date\` failed three ways against a \`kml/\` directory, each past the
> line written to describe it, and \`available\_issues\` one screen below carried two
> of the three.
> 
> \`next\` raises StopIteration where its filter matches nothing, and the
> \`except IndexError\` guarding the LATEST lookup never caught that -- so a caller
> saw \`RuntimeError: generator raised StopIteration\` from inside the collection
> walk (PEP 479 converts it at the generator boundary), or a bare StopIteration
> with no message where the method was called directly. Asked for a default
> instead, there is nothing to miss.
> 
> An empty listing built a frame whose url column is all-null and met \`invalid
> series dtype: expected String, got null\` in the split below it, in both methods.
> It is answered before either branch reads it, being one thing whichever asked.
> 
> And a run is read as the ten digits DWD stamps it with in a name ending .kmz,
> rather than as the third \_-separated part of one. MOSMIX-L all-stations is the
> layout that broke on: MOSMIX\_L\_2026092203.kmz carries no station id, so the third
> part was 2026092203.kmz with the extension still on it and the alias was
> LATEST.kmz, which the filter dropping LATEST does not match -- every row then met
> \`conversion from str to datetime failed\`, and that layout could not be asked for
> a run at all. MOSMIX-S was never affected; it is on one rule with the others now
> rather than on a naming that happened to survive. The LATEST alias is held to
> that rule too, so the default path cannot answer with a checksum published beside
> a forecast -- today only the listing's sort order keeps it from doing so.
> 
> available\_issues answers a directory holding no run with no issues rather than
> raising, and says so: fs.find walks with on\_error="omit", which swallows OSError,
> so a connection reset mid-listing and the 404 of a station id that does not exist
> both arrive looking like an empty directory. What that costs a caller who is not
> reading a terminal is in the changelog, and telling the cases apart is GH-1947. A
> directory with no dated run is reported by what is in it -- how many entries, how
> many the alias -- rather than by a guess at why.
> 
> The dwd/dmo half of this work is a separate PR. #1786 carries the narrower
> version of the StopIteration fix bundled with MOSMIX-SNOW and should drop that
> hunk when it rebases.
> 
> Co-Authored-By: Claude Opus 5 (1M context) \<noreply@anthropic.com\>
> 
> \* fix(dwd): let a mosmix forecast be uncompressed, and count entries without saying "1 entries"
> 
> The rule bound what counts as a forecast to \`.kmz\`, which is what DWD publishes
> today -- in a directory named \`kml/\`. So an uncompressed alias, the plainer thing
> to publish in a directory already named for it, would have made the default
> \`issue=LATEST\` path raise \`Unable to find LATEST file within ...\` for a directory
> that plainly holds one. The old \`"LATEST" in url.upper()\` kept working there;
> this did not, and it fails closed on the path a caller reaches without asking for
> anything.
> 
> What the rule is for is excluding a checksum published beside a forecast, and a
> checksum is not a KML, so \`.km\[lz\]\` excludes what it meant to without betting on
> the compression. Both the alias rule and the dated-run rule take it, and both
> have a case now: reverting the widening fails them, where before nothing covered
> it.
> 
> And the warning read "No dated run among the 1 entries" in the commonest shape it
> fires on -- a directory pruned back to its single alias. The counts moved into a
> parenthesis that reads at any number.
> 
> Both found reviewing the pre-re-cut branch; both are mosmix, so they land here.
> 
> Co-Authored-By: Claude Opus 5 (1M context) \<noreply@anthropic.com\>
> 
> \* fix(dwd): answer one run published in two forms, and let one constant govern both rules
> 
> The widening to \`.km\[lz\]\` one commit ago was made to anticipate DWD publishing an
> uncompressed forecast -- and reopened, during exactly that migration, the failure
> the rule exists to prevent. A run published as both \`...\_01001.kmz\` and
> \`...\_01001.kml\` carries one run stamp on two names, so two rows match one run and
> \`.item()\` raises \`can only call '.item()' if the Series is of length 1\` instead
> of answering. The LATEST branch had the softer version: it answered with whichever
> form the listing happened to return first. Both sort and take the first now, so
> two forms of one run give one of them and give the same one every time.
> 
> And \`\_FORECAST\_FILE\` governed half of what its name claims. \`\_LATEST\_FILE\` was
> built from it while \`\_run\_stamp\` carried the same pattern as a literal, so
> editing the constant would have moved the alias rule and left the dated-run rule
> behind -- the two diverging exactly where the previous commit argued they must
> not, and where its message said they did not. The constant is interpolated into
> both now.
> 
> Both found reviewing this PR in its re-cut shape.
> 
> Co-Authored-By: Claude Opus 5 (1M context) \<noreply@anthropic.com\>
> 
> \* fix(dwd): match what the mosmix reader can open, not what the directory is named after
> 
> The rule was widened to \`.km\[lz\]\` two commits ago so that an uncompressed
> forecast -- the plainer thing to publish in a directory named \`kml/\` -- would not
> make the default path raise. It resolves to a file the reader cannot open:
> KMLReader.fetch hands every download to ZipFileSystem, which raises
> \`BadZipFile: File is not a zip file\` on a plain KML. Verified.
> 
> Worse where it was meant to help. The widening was written for a migration
> publishing both forms at once, and sorting picks \`.kml\` before \`.kmz\`, so in
> exactly that window the resolver would have preferred the unreadable one -- on
> the default \`issue=LATEST\` path, where the old code at least never chose it
> silently.
> 
> Back to \`.kmz\`, with why written down so it is not widened again without the
> reader being taught first. The two "both forms" cases stay and now pin that the
> readable form wins, which is worth more than deleting them.
> 
> Found reviewing the PR stacked on this one.
> 
> Co-Authored-By: Claude Opus 5 (1M context) \<noreply@anthropic.com\>
> 
> \---------
> 
> Co-authored-by: Claude Opus 5 (1M context) \<noreply@anthropic.com\>

---

<div class="post-metadata">

**Author:** ![git](https://community.panodata.org/user_avatar/community.panodata.org/git/32/8_2.png) [@git](https://community.panodata.org/u/git)\
**Post date:** [September 23, 2026, 6:04am UTC](https://community.panodata.org/t/logbook-of-code-changes/16/7198 "2026-09-23T06:04:21Z")

</div>

> <https://github.com/earthobservations/wetterdienst/commit/51fa72afe6c794e76e9123f0ae4b5fca5ecc8326>
>
> \* fix(dwd): answer a dmo directory that holds no run, rather than raising from a… frame
> 
> \`available\_issues\` asks which runs a station has, and raised rather than
> answering when there were none. An empty listing builds a \`url\` column of dtype
> Null, so the split below it met \`invalid series dtype: expected String, got null\`
> out of \`wetterdienst issues\` and the \`/issues\` endpoint; an entry that is not a
> forecast reached add\_date\_from\_filename and met \`conversion from str to i64
> failed ... \["AD"\]\`. Which runs exist has an answer in both cases: none.
> 
> Said rather than simply answered, because a listing that failed looks the same
> from here: fs.find walks with on\_error="omit", which swallows OSError, and
> aiohttp's ClientOSError is one -- so a connection reset mid-listing, and the 404
> of a station id that does not exist, both arrive as an empty directory would. An
> unremarked \[\] would make either a fact about the station. What that costs a
> caller who is not reading a terminal is in the changelog, and telling the cases
> apart is GH-1947.
> 
> What counts as a forecast is the six digits a run is stamped with and the .kmz
> the name ends in. The slice that reads the stamp takes four characters off
> whatever it is given, so \`...\_210000.txt\` strips to \`210000\` and would have been
> reported as a run that exists; \`.kmz.md5\` failed only by stripping to
> \`210000.kmz\`, which is luck rather than a rule.
> 
> The positional read itself stays, along with the lead-time substring match and
> the tz-aware issues this method advertises that get\_url\_for\_date rejects -- all
> three are GH-1948, and all three are that method's reading of the listing rather
> than this one's.
> 
> The dwd/mosmix half of this work is GH-1946, which this does not depend on.
> 
> Co-Authored-By: Claude Opus 5 (1M context) \<noreply@anthropic.com\>
> 
> \* docs(dwd): stop this PR claiming a mosmix fix it does not contain
> 
> The re-cut left three references behind. A comment, a test docstring and the
> changelog entry all said the same fault was fixed "for dwd/mosmix alongside
> this" -- true of the branch these were written on, false of this one, which is
> dmo only. Read alone, the PR asserted a fix a reader would not find in it, and
> would not find on main either until GH-1946 lands. They point at GH-1946 now, and
> say the two do not depend on each other.
> 
> The comment also said GH-1948 covers "the positional read", which understated it:
> get\_url\_for\_date reads this same directory for the data path with no filter at
> all, so a .md5 beside a forecast makes its lead-time match keep both and .item()
> raise, and a .txt parses to a run it will hand to the reader. Both reproduced and
> added to GH-1948, which now carries all four faults of that one method.
> 
> Found reviewing this PR standing alone against main.
> 
> Co-Authored-By: Claude Opus 5 (1M context) \<noreply@anthropic.com\>
> 
> \---------
> 
> Co-authored-by: Claude Opus 5 (1M context) \<noreply@anthropic.com\>

---

<div class="post-metadata">

**Author:** ![git](https://community.panodata.org/user_avatar/community.panodata.org/git/32/8_2.png) [@git](https://community.panodata.org/u/git)\
**Post date:** [September 23, 2026, 6:05am UTC](https://community.panodata.org/t/logbook-of-code-changes/16/7199 "2026-09-23T06:05:11Z")

</div>

> <https://github.com/earthobservations/wetterdienst/commit/1896a936976691d9d8aea949a86f993b1c7c056f>
>
> \* fix(dwd): read a dmo run by its whole name, not by position and substring
> 
> Eve…ry part of ptp\_gdmog\_\<station\>\_\<lead\>\_\<n\>\_\<DDHHMM\>.kmz was read the wrong way,
> and the four faults are one rule apart.
> 
> The lead time was matched as a bare "78" or "168" anywhere in the URL, which the
> station id also satisfies: 187 of 5811 ids contain 78, so a short-lead request
> kept the long-lead files too, two rows carried one run start, and .item() raised.
> About 3% of DMO stations could not be read at all, and the rest matched by luck.
> 
> The run stamp was the last \_-separated part with four characters taken off, so a
> README reached the parse and raised \`conversion from str to i64 failed \["AD"\]\`,
> and a ...\_210000.txt sidecar strips to a valid 210000 and could be answered with
> \-- handing the reader a file that is not a forecast, which is worse than the
> crash because nothing points back at the listing.
> 
> available\_issues returned tz-aware UTC datetimes while this compared against a
> naive column, so an issue it advertised was rejected by the next command. And a
> lead-time filter that emptied the frame reported \`Unable to find None file
> within\`, because LATEST took a max over nothing.
> 
> Named as a whole, none of those is expressible: the lead time is a field, a name
> that is not a forecast carries no stamp, the issue is converted when it carries a
> zone, and an empty frame says which lead time it found nothing for.
> available\_issues reads by the same rule, asked without a lead time since it lists
> both.
> 
> Closes GH-1948.
> 
> Co-Authored-By: Claude Opus 5 (1M context) \<noreply@anthropic.com\>
> 
> \* fix(dwd): floor a dmo issue to the release before it, not the one after
> 
> Making the tz comparison work turned a latent rounding bug into a live one. The
> issue is floored to DMO's 00/12 release hours -- except \`hour % 12\` is non-zero
> for 1 through 11 as well as 13 through 23, and both went to 12. So asking for the
> 03:00 run returned the 12:00 one, issued nine hours later, or raised where 12:00
> was not yet published while the 00:00 run sat there unasked for. The docstring
> has always said "floored".
> 
> It stood because it could not be reached: every non-LATEST issue is stamped
> tz-aware and was compared against a naive column, so it raised SchemaError before
> any of this decided anything. The fix one commit ago removed that wall.
> 
> get\_url\_for\_date also says when a listing names nothing, as available\_issues
> beside it does, and it matters more here: read\_icon and read\_icon\_eu turn the
> None into an empty frame, which merges into the result as "this station has no
> forecast" with no warning, no error and no exit code.
> 
> Not fixed here and filed as GH-1956: available\_issues answers for
> icon/single\_stations and is lead-time-agnostic while get\_url\_for\_date reads the
> request's dataset and lead time, so it can still advertise an issue the values
> path rejects. That wants a signature decision this PR should not make alone.
> 
> Co-Authored-By: Claude Opus 5 (1M context) \<noreply@anthropic.com\>
> 
> \* fix(dwd): convert a dmo issue given in another zone, rather than relabelling it UTC
> 
> \`dt.datetime(issue.year, ..., issue.hour, tzinfo=UTC)\` takes the wall-clock hour
> and stamps UTC on it, so \`13:00+02:00\` was read as 13:00 UTC where it is 11:00.
> That floored to the 12:00 release instead of the 00:00 one -- one release too
> late, and at 11:00 UTC a run not published yet, so the caller got an IndexError
> with the 00:00 run sitting there unasked for. A naive issue is still taken as
> UTC, which is what it has always meant here.
> 
> This is why the tz branch added to get\_url\_for\_date one commit ago is unreachable
> from a normal request: everything arriving there had already been stamped UTC by
> this line. The branch stays, since available\_issues' output reaches it directly.
> 
> Three smaller things from the same review. The docstring claimed a "9/12 hour"
> release frequency that neither the body nor the server has -- DMO releases at 00
> and 12 -- and this commit rewrote that body, so it is the moment to drop the
> stale half. The sort tiebreak's comment described a case the lead-anchored rule
> cannot produce, since the only field left varying is fixed per lead time; it now
> says that rather than implying a preference policy. And an empty listing is
> warned about once per directory rather than once per station, an all\_stations
> request otherwise printing thousands of identical lines for one root cause.
> 
> Co-Authored-By: Claude Opus 5 (1M context) \<noreply@anthropic.com\>
> 
> \* fix(dwd): report an empty dmo listing once per product, not once per station
> 
> The dedup added last round keyed on the URL, which deduplicates only the
> all\_stations half: single\_stations is the default, and its URL carries the
> station id, so every station got its own entry and its own warning. icon\_eu has
> no single-station directory upstream at all -- 404, verified -- so a request for
> it would have printed one line per station of the catalogue for one root cause,
> where before this branch it returned empty frames silently. The comment claimed
> the dedup covered exactly the case it did not.
> 
> Keyed on the path with the station segment folded out now, so one product's
> empty directory is one line however many stations were asked for.
> 
> Not fixed here, and measured onto GH-1956: available\_issues merges stamps across
> both lead times while get\_url\_for\_date filters to the one asked for, and the two
> are published about twenty-four minutes apart -- 03:08:56 and 03:33:12 UTC for
> the 00:00 run. So for that window \`issues\` advertises a run that
> \`values --lead\_time=long\` rejects. Closing it means available\_issues either takes
> the lead time it answers for, changing a public classmethod and get\_issues with
> it, or stops advertising runs only one lead time has, which is a different answer
> to which runs exist.
> 
> Co-Authored-By: Claude Opus 5 (1M context) \<noreply@anthropic.com\>
> 
> \---------
> 
> Co-authored-by: Claude Opus 5 (1M context) \<noreply@anthropic.com\>

---

<div class="post-metadata">

**Author:** ![git](https://community.panodata.org/user_avatar/community.panodata.org/git/32/8_2.png) [@git](https://community.panodata.org/u/git)\
**Post date:** [September 23, 2026, 6:06am UTC](https://community.panodata.org/t/logbook-of-code-changes/16/7200 "2026-09-23T06:06:49Z")

</div>

> <https://github.com/earthobservations/wetterdienst/commit/2eaa80e04d919b38989f4d8ad632b7ac085635cb>
>
> \* fix(dwd): read the newest mosmix run by name, hold it accordingly, and let one… quiet station be quiet
> 
> Two issues in one method, because they are the same lines.
> 
> LATEST resolved to the mutable alias, so the URL could not be held: MOSMIX\_S is
> 36 MB published hourly, and a five-minute expiry re-downloaded it up to twelve
> times an hour for a file that had not changed. It reads the newest run the
> listing names instead -- the same bytes, the server answering one ETag for both,
> the alias being a link rather than a copy -- and a named run is held for twelve
> hours where only the alias, still the fallback for a listing that names no run,
> keeps the short expiry. dwd/road and dwd/dmo already index the named files and
> skip the alias. Closes GH-1945.
> 
> And a station whose directory DWD has emptied or retired cost the whole request.
> get\_url\_for\_date raised, nothing between it and values.all() catches, so one such
> station ended a request for fifty and took the forty-nine that publish with it.
> It answers None now and the readers give that station an empty frame, which is
> the split dwd/dmo has always made; mosmix raised because its return type said it
> must. A directory that names files but no forecast still raises, being a
> statement about the product rather than about one station. Closes GH-1949.
> 
> Co-Authored-By: Claude Opus 5 (1M context) \<noreply@anthropic.com\>
> 
> \* fix(dwd): say which end of the sort each path takes, and stop pinning a filesystem nothing reads
> 
> Three from the review of this PR.
> 
> The two selection paths claimed one rule and took opposite ends of it: LATEST
> takes runs\[-1\], the largest, and the dated branch sorts and takes the first, the
> smallest. With the widening reverted in the PR below this one, \`\_run\_stamp\`
> matches \`.kmz\` alone and one file exists per run, so either end is that file --
> but the comment said the sort was "on the stamp rather than on the name", which
> was not true of either. It says which is which now.
> 
> \`self.dwdfs\` had no reader left anywhere once \`download\` began choosing per URL,
> and an attribute pinned to the five-minute filesystem is a trap for whatever
> reaches for it next. Gone.
> 
> And the disk cost of resolving by name is written down rather than left to be
> discovered: a distinct URL per run means a blob an hour where the alias reused
> one, about 430 MB a day for MOSMIX-S, which nothing evicts until GH-1955 is
> answered. It buys a twelfth of the bytes over the wire, which is the trade --
> but it is a trade, and the changelog says so.
> 
> Also records why the newest name is safe to read where the alias was DWD's
> completeness signal: one inode under two names, which is a link made when the
> upload finished rather than a name appearing while 36 MB is still arriving.
> 
> Co-Authored-By: Claude Opus 5 (1M context) \<noreply@anthropic.com\>
> 
> \* fix(dwd): tell one station's empty directory from the whole product's, and drop a poisoned run
> 
> Returning None for an empty listing was right for a station's own directory and
> wrong for the all-stations products, where one empty directory is every station
> at once. There it cannot mean a station retired -- it means the listing failed or
> DWD moved the product, and fs.find swallowing an OSError makes those identical to
> an empty directory. So a connection reset while listing MOSMIX\_S would have made
> every station return an empty frame: values.all() empty, exit 0, HTTP 200, where
> the request used to fail loudly. The callers say which kind of directory they are
> reading, and only a station's own answers None.
> 
> A cached body that is not a zip is also dropped and asked for once more. fsspec
> records its cache entry before the copy that fills it finishes, so a download
> interrupted mid-copy leaves a truncated blob that \_check\_file then accepts for
> the life of the entry. Held five minutes that righted itself; held twelve hours,
> with LATEST now resolving to that same immutable URL rather than to an alias, it
> would not. A body still not a zip after the retry is upstream's and raises.
> 
> And the two selection paths take the same end of the same sort now. The dated
> branch took the first and LATEST the last, so a second lead time in one directory
> \-- the case that can actually put two names on one run stamp, which the comment
> had wrong as \`.kml\` beside \`.kmz\` -- would have answered differently depending on
> which way you asked for the same run.
> 
> All three from the second review of this PR.
> 
> Co-Authored-By: Claude Opus 5 (1M context) \<noreply@anthropic.com\>
> 
> \* fix(dwd): take one end of the sort everywhere, and correct what the cache growth costs
> 
> Six from the third review of this PR.
> 
> The figure was wrong, and wrong against the other figure in the same sentence:
> MOSMIX-S is 36 MB published hourly, so a polling process leaves 871 MB a day
> behind, not 430 -- while the "twelfth of the bytes over the wire" beside it was
> computed from the right number. Users size disk from that line. It also now says
> what the growth actually is: not new unbounded growth, but mosmix joining what
> every provider here already does, the observation zips and radar files
> accumulating per URL for as long as they have existed. Reusing one blob was the
> anomaly, and it came from resolving to a name whose content changed under it.
> 
> The alias fallback took the first of its sort while the run paths took the last,
> so two alias forms -- a second lead time, which dwd/dmo already publishes --
> would have answered differently from every other path, which is the guarantee the
> comment beside it claims. All ends are the last now, and two comments describing
> the tie-break the code stopped taking are corrected.
> 
> A body that is not a zip is no longer fetched twice where nothing was held to
> drop: for MOSMIX-S that second request is another 36 MB spent to meet the same
> BadZipFile. And read\_mosmix\_small's empty-frame guard is gone, being unreachable
> since that path raises rather than answering None.
> 
> The changelog also says that dwd/dmo reads through this same class, so its
> downloads take the long hold too -- correct, its names carrying the same
> immutable run stamp, and worth stating because the change was made for mosmix.
> 
> Co-Authored-By: Claude Opus 5 (1M context) \<noreply@anthropic.com\>
> 
> \---------
> 
> Co-authored-by: Claude Opus 5 (1M context) \<noreply@anthropic.com\>

---

<div class="post-metadata">

**Author:** ![git](https://community.panodata.org/user_avatar/community.panodata.org/git/32/8_2.png) [@git](https://community.panodata.org/u/git)\
**Post date:** [September 23, 2026, 6:22am UTC](https://community.panodata.org/t/logbook-of-code-changes/16/7201 "2026-09-23T06:22:57Z")

</div>

> <https://github.com/earthobservations/wetterdienst/commit/8e6e250e24e066c4f5fa28295fa04d55f2490aa5>
>
> \* fix(network): let the cache say what it did, rather than decide quietly
> 
> Four …ways this layer answered for its callers without telling them.
> 
> cache\_disable and use\_certifi decided what register() built and were not part of
> the key it was filed under, and register only runs for a key that is new -- so
> the first caller in a thread decided for every later one. CacheExpiry.METAINDEX
> being an alias of TWELVE\_HOURS, any earlier metaindex download from any provider
> left a caching filesystem under that key, and a later request made with caching
> disabled was served from disk. Both are in the key now.
> 
> Nothing ever called clear\_expired\_cache, so every distinct URL a provider fetched
> left a copy behind for good: 4.2 GB on one developer machine, 1.4 GB of it in a
> single five-minute bucket holding one provider's 36 MB forecasts. Swept once per
> filesystem per process, which is the only moment this layer knows about, and
> suppressed if the sweep cannot read its own metadata -- that is not worth failing
> a download over.
> 
> fs.find walks with on\_error="omit", which catches (FileNotFoundError, OSError)
> and returns nothing, and aiohttp's ClientOSError is an OSError. So a connection
> reset mid-walk was swallowed inside fsspec, never reached the @stamina.retry
> wrapping this call, and arrived as an empty directory would -- leaving every
> provider to decide what an empty list meant, which none of them could. It raises
> now, and the two are told apart where the difference is known: a directory that
> is not there is a FileNotFoundError and stays the \[\] callers have always had;
> anything else is a failure to read, which the retry is for.
> 
> And File carries from\_cache, asked before the read because reading is what
> populates it. A caller that cannot use what it was given needs to know whether
> asking again could answer differently: a cached body says nothing about what the
> server has now, while one just fetched cannot have changed in the meantime.
> 
> Closes GH-1947.
> 
> Co-Authored-By: Claude Opus 5 (1M context) \<noreply@anthropic.com\>
> 
> \* fix(network): drop the cache sweep, and key a filesystem by everything it is built from
> 
> Review found the sweep destroys data. CacheExpiry.INFINITE is False, so
> expiry\_time is int(False) = 0, and clear\_expired\_cache with 0 treats every entry
> as expired and rmtrees the storage directory -- reproduced: one cached blob
> before, none after. lhmt/observation and both meteofrance providers use INFINITE
> for immutable historical data, so the first such download in a fresh process
> would have destroyed the archive cache. It also raises RuntimeError on a
> half-written metadata row, which is the case the comment claimed to survive and
> which would have left the filesystem unregistered and every later get() failing;
> and it races download\_files' thread pool over a directory the registry does not
> own. Eviction wants its own design and is now GH-1955, with the trap written
> down.
> 
> The key gains cache\_dir, which review caught as the same defect being fixed: it
> decided where blobs went and was not part of what the filesystem was filed under,
> so a second Settings with a different WD\_CACHE\_DIR in the same process kept
> writing to the first one. It is also what made the new tests pass for the wrong
> reason -- they reused whatever an earlier test had registered rather than their
> own tmp\_path, so neither exercised the directory it named.
> 
> The key now names the instance in memory and nothing on disk. Letting it reach
> the filesystem would have stranded every blob a use\_certifi user already has,
> under a path nothing would look at again.
> 
> And from\_cache is sampled per attempt rather than once before the retry loop: an
> attempt that re-downloads after a cached read failed must not inherit the first
> attempt's answer, which is backwards for the caller it exists for.
> 
> Co-Authored-By: Claude Opus 5 (1M context) \<noreply@anthropic.com\>
> 
> \* fix(network): carry from\_cache through unpacking, and stop the tests mocking the question
> 
> Four from the second review of this PR.
> 
> \`\_unpack\_climate\_observations\_data\` and both branches of the derived unpacker
> rebuild the File with url, content and status, so from\_cache silently reset to
> its default. A caller finding the member corrupt is exactly who the flag is for,
> and it was telling them the body came off the wire. Carried now.
> 
> The registry key built its TTL segment from \`cache\_expiry.name\` while the cache
> path read the same thing through \`resolve\_ttl\`. They agree only because that
> function returns the name verbatim -- and a key that reads an input its own way
> is how this drifted in the first place. Both go through the accessor now, and the
> always-true walrus that made the conditional dead is gone.
> 
> The from\_cache test monkeypatched \`\_check\_file\` itself, so it asserted its own
> mock: it would have passed had the code asked the wrong question, or hashed the
> URL differently than \`\_open\` does, and the mock's return shape was wrong besides.
> It runs against a real WholeFileCacheFileSystem over an in-memory source now --
> miss then hit, the predicate as actually called.
> 
> And this branch carried a 262 KB rewrite of
> examples/provider/dwd/dwd\_obs\_daily\_climate\_summary.duckdb in both commits, pure
> churn from the examples test writing into the tracked path. Reverted, so the net
> diff of this PR is the network layer and its tests. The other four branches are
> clean; the example writing into a tracked file under pytest is worth its own fix.
> 
> Co-Authored-By: Claude Opus 5 (1M context) \<noreply@anthropic.com\>
> 
> \* fix(network): keep an offline listing quiet, and scrub the cache probe like a failed read
> 
> Raising everything that is not FileNotFoundError made one path shout where the
> rest of the library whispers. aiohttp's ClientConnectorError is an OSError that
> fsspec's on\_error="omit" used to swallow, so an offline user got \[\] from a
> listing and empty frames from the providers that rely on it -- dmi, rmi, smhi,
> nws and fmi all do. After the change the listing aborted with a raw aiohttp
> traceback while the download path beside it still degraded quietly, carrying
> NoInternetError in a File for raise\_if\_exception to log at debug. Being offline
> is not this listing failing to read; it is every path being offline, and a
> listing has no File to carry that in. It stays \[\].
> 
> The cache probe also sat outside the try whose job is to drop a traceback holding
> the credentials. \_check\_file reaches the disk -- \_mkcache raises on a read-only
> or full cache dir, the metadata load on a truncated file, which is a state this
> codebase has already met -- and such an exception skipped \_without\_credentials
> entirely. That scrubbing is load-bearing rather than belt and braces: stamina's
> retry hook logs repr(caused\_by) on the first failure, before any handler below is
> reached. Inside the try now.
> 
> Both found in the third review of this PR.
> 
> Co-Authored-By: Claude Opus 5 (1M context) \<noreply@anthropic.com\>
> 
> \* docs(changelog): drop the network entry the reshape superseded
> 
> The rebase onto main replayed four commits that each touched this entry, and
> resolving every conflict by keeping both sides left the pre-reshape text beside
> the corrected one -- still describing the cache sweep that was removed for
> destroying CacheExpiry.INFINITE caches, and missing cache\_dir and the offline
> degradation the later commits added.
> 
> Co-Authored-By: Claude Opus 5 (1M context) \<noreply@anthropic.com\>
> 
> \---------
> 
> Co-authored-by: Claude Opus 5 (1M context) \<noreply@anthropic.com\>

---

<div class="post-metadata">

**Author:** ![git](https://community.panodata.org/user_avatar/community.panodata.org/git/32/8_2.png) [@git](https://community.panodata.org/u/git)\
**Post date:** [September 23, 2026, 1:58pm UTC](https://community.panodata.org/t/logbook-of-code-changes/16/7202 "2026-09-23T13:58:50Z")

</div>

> <https://github.com/panodata/omniload/commit/2692437a7a9a61d617c26d71123fea8a5925c4ac>
>
> \`file://out.xlsx\` (or \`#xlsx\`) writes the load as one Excel worksheet named
> afte…r the destination table, so \`#sheet\_name=\<table\>\` reads it back as the
> table it was.
> 
> It writes with xlsxwriter directly rather than \`DataFrame.write\_excel\`, which
> always adds an Excel table object (case-insensitive headers, so columns \`A\`
> and \`a\` leave a sheet that reads back empty), gives floats a three-decimal
> display format, and absorbs the limits xlsxwriter reports. \`constant\_memory\`
> streams rows to a temp file.
> 
> Nested values, bytes and decimals are spelled as \`write\_csv\` spells them, and
> an aware datetime is written as the same instant in naive UTC. A value an
> Excel cell would store as a different value is refused, naming the column and
> row: an integer past 2\*\*53, NaN or infinity, a string past 32 767 characters,
> a date before March 1900, a time that reads back as midnight, a timestamp
> that reads back in year 10000, and a load past a worksheet's rows or columns.
> xlsxwriter creates the path only on close, so a refusal leaves no file.
> 
> \`WriterRegistration\` gains \`takes\_table\_name\`, and \`post\_load()\` passes
> \`table\_name=\` only to a writer that declares it.

---

<div class="post-metadata">

**Author:** ![git](https://community.panodata.org/user_avatar/community.panodata.org/git/32/8_2.png) [@git](https://community.panodata.org/u/git)\
**Post date:** [September 23, 2026, 1:59pm UTC](https://community.panodata.org/t/logbook-of-code-changes/16/7203 "2026-09-23T13:59:06Z")

</div>

> <https://github.com/panodata/omniload/commit/db86c927188b551bc520fa08a9c773c0c80023f3>

---

<div class="post-metadata">

**Author:** ![git](https://community.panodata.org/user_avatar/community.panodata.org/git/32/8_2.png) [@git](https://community.panodata.org/u/git)\
**Post date:** [September 23, 2026, 4:02pm UTC](https://community.panodata.org/t/logbook-of-code-changes/16/7204 "2026-09-23T16:02:28Z")

</div>

> <https://github.com/earthobservations/wetterdienst/commit/65a60a0ef12fc867801da57485e8ab7fdc2f3d85>
>
> The dump is a smoke test when the examples run under pytest -- one station's
> val…ues, thrown away -- but it wrote to the tracked
> examples/provider/dwd/dwd\_obs\_daily\_climate\_summary.duckdb regardless, so every
> test run left a 1.3 MB binary modified in the working tree.
> 
> That is how it was noticed: it landed in two commits of an unrelated network PR
> before a review caught it, and dirtied the tree twice more during a merge,
> blocking a branch checkout each time. A file that rewrites itself whenever the
> suite runs gets committed by accident eventually.
> 
> The \`test\` flag already existed and only shortened the loop; it now chooses the
> destination as well. A test asserts the tracked file is untouched after the
> example runs, and fails against the old behaviour with "the example modified
> examples/provider/dwd/dwd\_obs\_daily\_climate\_summary.duckdb".
> 
> Co-authored-by: Claude Opus 5 (1M context) \<noreply@anthropic.com\>

---

<div class="post-metadata">

**Author:** ![git](https://community.panodata.org/user_avatar/community.panodata.org/git/32/8_2.png) [@git](https://community.panodata.org/u/git)\
**Post date:** [September 23, 2026, 9:54pm UTC](https://community.panodata.org/t/logbook-of-code-changes/16/7205 "2026-09-23T21:54:49Z")

</div>

> <https://github.com/earthobservations/wetterdienst/commit/1764b238cf6a77e560daaa77c480cb42b76dc440>
>
> \* fix(examples): address the DuckDB dump with three slashes, not four
> 
> \`main\` is… red on Windows:
> 
> \_duckdb.IOException: Cannot open file
> "//C:\\Users\\RUNNER~1\\AppData\\Local\\Temp\\...\\dwd\_obs\_daily\_climate\_summary.duckdb":
> The network path was not found.
> 
> \`ConnectionString\` takes the database as the URL path with one leading slash
> removed, so exactly one slash belongs between the scheme and the path. A POSIX
> path supplies its own (\`duckdb:///\` + \`/tmp/x\` reads back as \`/tmp/x\`); a Windows
> path does not (\`duckdb:///\` + \`C:\\x\` reads back as \`C:\\x\`). The fourth slash left
> the POSIX form with a doubled \`//\` that still resolves, and the Windows form with
> a leading slash DuckDB reads as a UNC share.
> 
> So the string was always wrong on Windows, and the documented form in
> \`io/export.py\` has three slashes throughout. What changed is that the test added
> in GH-1958 runs the example under pytest, on every platform in the matrix, and
> said so.
> 
> Pinned in \`tests/util/test\_url.py\` rather than in the example, over a POSIX
> absolute path, a Windows absolute path and a relative one -- the contract the
> example relies on, testable without Windows to run it on.
> 
> Co-Authored-By: Claude Opus 5 (1M context) \<noreply@anthropic.com\>
> 
> \* fix(examples,docs): name the example's target, and correct the docs that teach the wrong one
> 
> Two findings from review.
> 
> The test pinned \`ConnectionString\`, not the example -- and those shared only a
> hand-copied f-string. Since the wrong slash count is silent on POSIX, re-adding
> the slash would have left every test green and every POSIX job green, and broken
> Windows again. The example now names its target in a \`duckdb\_target\` helper, and
> the test reads that helper's output back for a POSIX and a Windows path. Both
> mutations -- back to four slashes, and back to two -- fail it.
> 
> And the same count is wrong in the two places that teach it. \`to\_target\`'s own
> docstring and the PyConDE notebook both show \`duckdb://name.duckdb?table=...\`,
> which \`urlparse\` reads as a host rather than a path:
> 
> duckdb://dwd.duckdb?table=weather -\> database='dwd'
> duckdb:///dwd.duckdb?table=weather -\> database='dwd.duckdb'
> 
> So a user copying that line gets an extensionless file named \`dwd\` in the working
> directory and no error. The notebook is worse: it tells the reader to write to
> \`wetterdienst\_pyconde\_pydata\_2026\_demo.duckdb\` and then reads back from a file of
> that name, which the two-slash form never created.
> 
> Co-Authored-By: Claude Opus 5 (1M context) \<noreply@anthropic.com\>
> 
> \---------
> 
> Co-authored-by: Claude Opus 5 (1M context) \<noreply@anthropic.com\>

---

<div class="post-metadata">

**Author:** ![git](https://community.panodata.org/user_avatar/community.panodata.org/git/32/8_2.png) [@git](https://community.panodata.org/u/git)\
**Post date:** [September 23, 2026, 10:19pm UTC](https://community.panodata.org/t/logbook-of-code-changes/16/7206 "2026-09-23T22:19:28Z")

</div>

> <https://github.com/earthobservations/wetterdienst/commit/cbfe3a88035dbfe5c2bf68dd9107f9c47299912a>
>
> \* fix(network): name a blob directory for who is asking, and collect what stops …being named
> 
> The on-disk cache was named for a hash of the whole of \`client\_kwargs\`, which
> mixes the two kinds of thing that go in there. An \`Authorization\` header decides
> what a server sends back; a timeout, a proxy and a User-Agent decide nothing
> about it. The default User-Agent carries the version number, so every release
> renamed the directory, began again from an empty cache, and left the previous one
> behind where no key this version can produce would ever name it. One developer
> machine: 129 directories under 98 distinct hashes, 4.3 GB in all, 115 MB of it
> reachable -- and 1.4 GB under \`ttl-INFINITE-\*\`, which is a provider saying those
> bytes never change.
> 
> So the directory is separated by the TTL and by the credential, and by nothing
> else; the layout is named (\`v2-\`) so that anything of the previous shape can be
> told apart by its name rather than guessed at from its age. Those are reclaimed
> on the first cached download of a process. So is a directory a credential named
> that has since rotated -- Met Office mints a three-day JWT -- aged out at a month
> by a marker touched whenever something asks for the directory, since the blobs
> cannot answer that question: an archive read on every run and written on none has
> file times as old as the day it was fetched. Only a directory a credential names
> is ever aged out; reclaiming a shared one for looking idle would throw away the
> main cache rather than a leftover.
> 
> The in-memory registry key is deliberately unchanged and still separates on
> everything a filesystem is built from, transport settings included: \`register\`
> runs only for a key that is new, so whatever that key omits, the first caller in
> a thread decides for every later one (GH-1947).
> 
> And a blob its own TTL has already made useless is now dropped, once per
> directory per process. The obvious version of that is destructive, which is why
> it came back out of GH-1954: \`CacheExpiry.INFINITE\` is \`False\`, \`int(False)\` is
> \`0\`, and fsspec reads an expiry of zero as "every entry is expired" -- it removes
> them all and then \`rmtree\`s the directory. So a TTL that is not a positive number
> is not swept at all; the expiry is passed explicitly rather than left to fsspec's
> fallback; the directory is marked swept before the attempt rather than after,
> since \`clear\_expired\` raises for a half-written entry and a sweep retried on every
> registration would fail every download for that TTL for the life of the process;
> and the lock is held across the sweep rather than around the bookkeeping, which
> is what keeps a \`download\_files\` thread pool from writing rows the sweep's own
> snapshot would then drop and orphan.
> 
> Fixes GH-1959
> Fixes GH-1955
> 
> Co-Authored-By: Claude Opus 5 (1M context) \<noreply@anthropic.com\>
> 
> \* fix(network): read a credential header whatever shape it is given in
> 
> Two findings from reviewing the commit before this one, both failing in the
> dangerous direction.
> 
> \`client\_kwargs\["headers"\]\` reaches aiohttp either as a mapping or as an iterable
> of pairs, and both readers of "is there a credential here" assumed a mapping. A
> pair list therefore answered no: two API keys shared one blob directory, and a
> failure carrying the header went unscrubbed into the retry log \`stamina\` writes
> \-- the exposure GH-1954 exists to close. One reader now, shared by the two that
> have to agree about the answer, and a shape it cannot read counts as carrying a
> credential rather than as carrying none. Scrubbing a failure that held none costs
> a traceback; not scrubbing one that did puts the header in a log.
> 
> And \`\_CACHE\_LAYOUT\_VERSION\` was not self-cleaning, though its comment said it
> was: the matcher took only the shape before \`v2\`, so the next bump would strand
> every directory this one wrote -- the same unbounded leak as GH-1959, deferred
> one release. Any layout but the current one is reclaimed now, in both directions,
> so alternating between two versions costs a re-download rather than directories
> neither of them will ever collect.
> 
> Co-Authored-By: Claude Opus 5 (1M context) \<noreply@anthropic.com\>
> 
> \* fix(network): pin the blob-directory pattern to the TTLs that actually name one
> 
> Third finding of the review. \`\_BLOB\_CACHE\_DIR\` took \`\[A-Z\_\]+\` for the TTL name, so
> a directory named for a \`CacheExpiry\` member carrying a digit would not have read
> as a blob directory at all, and would never have been reclaimed on a later layout
> bump. No member has one today, which is what made it a trap rather than a bug.
> 
> The character class is widened, but the fix that matters is the test: it walks the
> enum and asserts that every directory \`\_cache\_path\` actually writes -- shared and
> credentialed, for every TTL there is -- is one the reclaim recognises. A member
> that escapes the pattern now fails loudly instead of leaking a directory quietly.
> 
> The class stays a class rather than becoming the enum, because the directories
> worth reclaiming are the ones older builds wrote, whose TTLs may since have been
> renamed or removed. So it is deliberately wider than today's enum and cannot be
> pinned by a test against it; what the test pins is the other direction.
> 
> Co-Authored-By: Claude Opus 5 (1M context) \<noreply@anthropic.com\>
> 
> \* fix(network): hold one lock over everything that opens or deletes a cache file
> 
> CI on Windows, which is the only place this shows:
> 
> PermissionError: \[Errno 13\] Permission denied:
> '...\\fsspec\\v2-ttl-FIVE\_MINUTES\\cache'
> at fsspec/implementations/cache\_metadata.py:51
> 
> The lock covered the sweep but not the \*building\* of a caching filesystem, and
> building one reads the directory's metadata file that the sweep and the reclaim
> delete. On POSIX an unlink leaves the open handle readable, so the race is
> invisible and every run on Linux and macOS passed; on Windows the builder gets
> the error, raised nowhere near the code that caused it.
> 
> So the two locks become one, held across building, sweeping, marking and
> reclaiming -- everything that opens or deletes a file under \`cache\_dir/fsspec\`.
> All of it is once-per-key or once-per-process work, so there is nothing to
> contend for.
> 
> This also corrects a claim the docstring made: "every path to a download in this
> directory passes through here first" was not true, because the path through
> \`WholeFileCacheFileSystem(...)\` reached the directory before the lock. The test
> added with this asserts that invariant directly rather than the platform
> behaviour, and fails on macOS against the old arrangement.
> 
> Co-Authored-By: Claude Opus 5 (1M context) \<noreply@anthropic.com\>
> 
> \* fix(network): read a credential for what it stands for, and separate on what can change a body
> 
> Twelve findings from review, each reproduced before it was fixed. Three matter.
> 
> \`SecretStr\` prints as \`\*\*\*\*\*\*\*\*\*\*\`, and \`Settings.auth\` has held credentials as
> \`SecretStr\` since GH-1937 -- so \`str(value)\` mapped every secret to one value and
> two API keys hashed alike:
> 
> key-A -\> '-1eb77008'
> key-B -\> '-1eb77008' same directory: True
> 
> Worse, that hash also names the in-memory filesystem, so the second caller was
> handed the first caller's filesystem, built with the first caller's
> \`Authorization\` header. That is GH-1947 again, for credentials.
> 
> Headers given as an iterator were read to name the directory, which emptied them:
> the request reached aiohttp with none, and the scrubber was told there was no
> credential on a request that carried one. An iterator counts as unreadable now.
> 
> And \`\_CREDENTIAL\_HEADERS\` was doing two jobs with opposite failure costs. Written
> for redaction, where missing a name costs a log line; reused to partition the
> cache, where it costs one caller's body being handed to another. Since
> \`WD\_FSSPEC\_CLIENT\_KWARGS\` is public, \`Accept-Language: de\` and \`en\` shared a
> directory. The cache separates on everything but a list of headers that cannot
> change a body, so an unknown header costs a miss rather than a wrong answer.
> 
> The rest: \`\_IDENTITY\_CACHE\_DIR\` was left at \`\[A-Z\_\]+\` when \`\_BLOB\_CACHE\_DIR\` was
> widened, so a rotated credential under a TTL name carrying a digit would never be
> aged out -- both are built from one fragment now. The size walk shared a \`try\`
> with the removal, so a file vanishing under it left the one directory actually
> being churned as the one never reclaimed. The log reported candidates rather than
> removals. A missing marker condemned a directory the marker was introduced to
> protect. Superseded layouts were removed with no grace, though the default cache
> dir is shared by every install for a user and an older one may be mid-download.
> Two comments asserted things the code does not do, one of them naming a function
> this branch renamed. And met.no Frost's shallow copy wrote its auth header into
> the dict \`Settings\` holds, which this branch made load-bearing.
> 
> Co-Authored-By: Claude Opus 5 (1M context) \<noreply@anthropic.com\>
> 
> \* docs(changelog): describe the change this PR makes, not the passes that made it
> 
> Three review passes each appended an entry for what that pass fixed, and none
> went back to the earlier ones. So the section carried three entries all fixing
> "two API keys shared one blob directory" -- a narrative of my corrections rather
> than a description of the change -- and the first of them still described a
> design the third had replaced:
> 
> \- "separated by the TTL and by who is asking" where the cache now separates on
> every header that can change a body, \`Accept-Language\` among them;
> \- "only a directory a credential names is ever aged out", where a suffix can come
> from any of those headers now;
> \- "the in-memory registry key is deliberately unchanged", which flatly
> contradicts the entry saying that key was fixed because two \`SecretStr\`
> credentials hashed alike in it.
> 
> The three credential entries are one entry, and the three claims are what the
> code does. \`tests/test\_changelog.py\` checks structure, not consistency, so
> nothing here was going to catch any of it.
> 
> Co-Authored-By: Claude Opus 5 (1M context) \<noreply@anthropic.com\>
> 
> \---------
> 
> Co-authored-by: Claude Opus 5 (1M context) \<noreply@anthropic.com\>

---

<div class="post-metadata">

**Author:** ![git](https://community.panodata.org/user_avatar/community.panodata.org/git/32/8_2.png) [@git](https://community.panodata.org/u/git)\
**Post date:** [September 23, 2026, 10:23pm UTC](https://community.panodata.org/t/logbook-of-code-changes/16/7207 "2026-09-23T22:23:28Z")

</div>

> <https://github.com/earthobservations/wetterdienst/commit/db2ef44636becde328882c4162cbb114dc4a6e44>
>
> \* fix(network): say whether a file was downloaded or read from the cache
> 
> "Downl…oading file" was logged for both, which for a cache hit describes the one
> thing that did not happen -- and it was logged before anything had been asked, so
> it could only guess.
> 
> \`File.from\_cache\` has known which it is since GH-1947, and the probe that decides
> it runs before the read. So the line moves after the probe and both it and the
> closing line say what actually happened. Per attempt rather than per call, so a
> retry that goes to the network after a cached read failed reads as the two
> different things it is.
> 
> \`download\_files\` made the same claim one level up, announcing \`Downloading 3
> files\` before any of the three had been asked for. It now says what it is
> fetching, and then how many of them the cache answered -- which it cannot know
> until they all have been. A single file reads as \`1 file\` rather than \`1 files\`.
> 
> Co-Authored-By: Claude Opus 5 (1M context) \<noreply@anthropic.com\>
> 
> \* fix(network): count what a fan-out actually fetched, and name a file before probing for it
> 
> Four findings from review of the commit before this one.
> 
> A failure comes back as a \`File\` carrying the exception rather than raising, so
> counting the returned list as fetched said three files arrived where three 404s
> did -- the same untrue thing this line exists to stop saying one level down. It
> now says \`Fetched 1 of 3 files\` where some did not arrive.
> 
> \`0 from cache\` reads as "the cache held none of them", which is not what
> \`NO\_CACHE\` means. The 1-minute precipitation metaindex is the one caller that
> asks for it, over a hundred files at a time, and nothing was ever going to be
> cached for any of them; that reads \`uncached\` now. Its own \`Downloading N files\`
> line, which sat directly above the new one saying the same thing, is gone.
> 
> Moving the opening line after the cache probe left nothing naming the url when
> the probe itself fails -- \`\_mkcache\` raises on a read-only cache dir, no handler
> catches it, and for a credentialed request \`\_without\_credentials\` drops the
> traceback, so the caller got a \`PermissionError\` naming neither the file nor the
> request. Said at debug now, where an "about to" marker belongs once the info line
> waits to know which it is.
> 
> And the fan-out test handed one \`WholeFileCacheFileSystem\` to every thread in the
> pool, which is the thread-safety problem the thread-local registry exists to
> avoid: fsspec's \`save\_cache\` does load-merge-replace on a shared metadata file.
> One instance per call now, as the registry gives each thread, and the two fan-out
> tests carry \`cflake\` like the others that fan out.
> 
> Co-Authored-By: Claude Opus 5 (1M context) \<noreply@anthropic.com\>
> 
> \---------
> 
> Co-authored-by: Claude Opus 5 (1M context) \<noreply@anthropic.com\>

[Previous page](https://community.panodata.org/t/logbook-of-code-changes/16.md?page=359)

[Next page](https://community.panodata.org/t/logbook-of-code-changes/16.md?page=361)
