Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add external neurosift service for .nwb.lindi.tar #2030

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

magland
Copy link
Contributor

@magland magland commented Sep 19, 2024

This small update enables external Neurosift links for assets with the .nwb.lindi.tar file extension. Support for the .nwb.lindi.json extension was previously added in #1922.

Background

For more information on the purpose of lindi, and why both .lindi.json and .lindi.tar extensions are necessary, please refer to the Lindi repository.

Next Steps

Currently, I plan to upload lindi files only to the staging site, as Lindi is not yet officially supported. Over the coming weeks, I will be working on making a case for future DANDI support, and look forward to discussion on the topic. I know there are issues about avoiding broken references.

In the meantime, having this menu option functional would be highly beneficial to me. Specifically, I will be presenting at a workshop next Thursday, and it would be convenient to have this feature available by then, although I could make do without it.

Comment on lines 362 to 367
{
name: 'Neurosift',
regex: /\.nwb.lindi.tar$/,
maxsize: Infinity,
endpoint: 'https://neurosift.app?p=/nwb&url=$asset_dandi_url$&st=lindi&dandisetId=$dandiset_id$&dandisetVersion=$dandiset_version$', // eslint-disable-line max-len
},
Copy link
Member

Choose a reason for hiding this comment

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

Since this is exactly the same as the previous Neurosift spec but for the file extension, would it make sense to simply update the regex in line 357 to accept both .nwb.lindi.json and .nwb.lindi.tar?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Made the change.

@magland
Copy link
Contributor Author

magland commented Sep 21, 2024

Not sure why that e2e puppeteer test is failing

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.

2 participants