Repository navigation
eegprep-lean: let read_index take an explicit index URL - #416
Conversation
Add a keyword-only index_url to read_index, so a caller that already knows a dataset's index location (a dev or staging deployment, for example) can fetch it directly instead of going through the production INDEX_URL_TEMPLATE. contract_base still comes from the fetched document, never from this argument, and errors still name the URL actually fetched. None (the default) keeps today's behavior unchanged. Fixes #415
A new wheel filename, so a host caching wheels by name never serves the old bytes under it. Refs #415
There was a problem hiding this comment.
If your organization's extra usage balance is empty, an organization admin can add extra usage credits at claude.ai/admin-settings/usage. If its monthly spend limit was reached, an admin can raise it on the same page. If neither applies, contact Anthropic support.
Once extra usage is available, reopen this pull request to trigger a review.
|
Claude encountered an error after 0s —— View job I'll analyze this and get back to you. |
A URL built from the template cannot name another dataset's index, but a supplied one can, and read_index would then return that dataset's recordings under the requested id. The default path is unchanged. Refs #415
|
🤖 Local review (a Sonnet reviewer, against AGENTS.md and the published index contract) found nothing critical. Its one point is addressed in a2d1bc6: a supplied index_url can name another dataset's index, and read_index took that document's dataset_id without comparing it, so it would return another dataset's recordings under the requested id. That is now refused, on the index_url path only, so the default path is unchanged. One new test; turning the check off makes it fail. The package's index tests pass (34 passed, 2 skipped). |
* Name dev2 and index_url in the lean contract The contract still said OSA vendors 0.1.0.dev1, which osa#450 replaced, and did not describe read_index(index_url=) from sccn/eegprep#416, which the python_browser recipe now depends on. Docs only. * Say what index_url replaces in the contract It replaces the reader's default index URL, not contract_base.
Add a keyword-only index_url to read_index so a caller that already knows a
dataset's index location, such as a dev or staging deployment, can fetch it
directly instead of going through the production INDEX_URL_TEMPLATE.
contract_base still comes from the fetched document, never from this
argument, and errors still name the URL actually fetched. None keeps today's
behavior unchanged. Also bumps eegprep-lean to 0.1.0.dev2, following its own
new-wheel-filename convention.
Fixes #415