Skip to content

The TDSE consistency cache uses a Linux-style directory on macOS and Windows #583

Open

Description

@jtravs

`solprop.driver.tdse_consistency.cache_directory` keeps its cache in `$XDG_CACHE_HOME/solprop` or `~/.cache/solprop` on every platform (`src/solprop/driver/tdse_consistency.py`). SEP 46's calibration store, added in #582, follows each platform's convention instead (`native/src/solprop_native/_store.py`, `cache_directory`):

  • `~/Library/Caches/solprop` on macOS;
  • `%LOCALAPPDATA%\solprop\Cache` on Windows;
  • the XDG location on Linux.

Both honour `SOLPROP_CACHE_DIR`. Without it, on macOS and Windows solprop's two caches end up in different places, and the TDSE one is outside the directory the platform clears and backs up as a cache.

Proposed: have the TDSE cache take the store's directory (`solprop.calibration.store_directory()`), keeping its `tdse-consistency` subfolder. An existing cache in the old place would just be rebuilt once.

Found while implementing SEP 46 phase 0 (recorded there as Q1).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: interfacesprop_*, Simulation, defaults and public names

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions