Skip to content

eegprep-lean: let read_index take an explicit index URL - #416

Merged
neuromechanist merged 3 commits into
developfrom
feat/eegprep-lean-index-url
Sep 23, 2026
Merged

neuromechanist merged 3 commits into
developfrom
feat/eegprep-lean-index-url

Conversation

@neuromechanist

Copy link
Copy Markdown
Member

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

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

@claude claude Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Code review skipped — your organization has no extra usage available to pay for this review.

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

claude Bot commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

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
@neuromechanist

Copy link
Copy Markdown
Member Author

🤖 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).

@neuromechanist
neuromechanist merged commit b4aa18b into develop Sep 23, 2026
7 checks passed
@neuromechanist
neuromechanist deleted the feat/eegprep-lean-index-url branch September 23, 2026 01:52
neuromechanist added a commit to nemarOrg/nemar-cli that referenced this pull request Sep 23, 2026
* 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

eegprep-lean: let read_index take an explicit index URL

1 participant