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

Web changes for NWB conversion #344

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

Web changes for NWB conversion #344

wants to merge 11 commits into from

Conversation

caroljiangg
Copy link

No description provided.

@caroljiangg caroljiangg self-assigned this Oct 24, 2024
Copy link

@deirdre-k deirdre-k left a comment

Choose a reason for hiding this comment

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

Looks great! Follow up with Mike to decide on what to do for the URL/domain stuff

@@ -40,6 +40,11 @@ <h3 class="benefits_heading is-size-3-mobile">Welcome, {{ user.email }}</h3>
</p>
</div>
{% endfor %}
<div class="box">
<p class="benefits_info is-size-5-mobile">
Convert NWB data to a BrainScore data plugin <a href="https://{{ request.get_host }}/profile/nwb">here</a>.

Choose a reason for hiding this comment

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

Should this be a domain-specific button/address? For example, submission is at http://{{ request.get_host }}/profile/{{ domain }}/submit

Choose a reason for hiding this comment

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

Leave as is for now, look for a place to add a disclaimer that this is only for vision

<br>

<p>Download a template JSON file below and fill in the required values.</p>
<a href="{% static "benchmarks/example_json.json" %}" class="button button-primary" download>

Choose a reason for hiding this comment

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

Love this!

@@ -43,6 +43,7 @@
path('profile/submit/', user.Upload.as_view(domain="vision"), name=f'vision-submit'),
path('profile/resubmit/', partial(user.resubmit, domain="vision"), name='vision-resubmit'),
path('profile/logout/', user.Logout.as_view(domain="vision"), name='vision-logout'),
path('profile/nwb/', user.ConvertNWB.as_view(domain="vision"), name=f'convert-nwb'),

Choose a reason for hiding this comment

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

@mike-ferguson to double check domain-specific url approach

Copy link
Author

Choose a reason for hiding this comment

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

@mike-ferguson just checking if the endpoint is good as is or if it should be profile/vision/nwb/?

benchmarks/views/user.py Outdated Show resolved Hide resolved
{
"dandiset_id": "000788",
"nwb_file_path": "sub-pico/sub-pico_ecephys.nwb",
"exp_path": "/home/ubuntu/vision/brainscore_vision/nwb_integration/",

Choose a reason for hiding this comment

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

Note to remove

@@ -0,0 +1,17 @@
{
"dandiset_id": "000788",
"nwb_file_path": "sub-pico/sub-pico_ecephys.nwb",

Choose a reason for hiding this comment

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

Note to change values to descriptors

Copy link
Member

@mike-ferguson mike-ferguson left a comment

Choose a reason for hiding this comment

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

Looks great! A few small formatting changes, but great work overall.

benchmarks/templates/benchmarks/convert_nwb.html Outdated Show resolved Hide resolved
benchmarks/forms.py Outdated Show resolved Hide resolved
benchmarks/templates/benchmarks/convert_nwb.html Outdated Show resolved Hide resolved
benchmarks/templates/benchmarks/convert_nwb.html Outdated Show resolved Hide resolved
caroljiangg and others added 8 commits November 26, 2024 14:06
Co-authored-by: deirdre-k <[email protected]>
Co-authored-by: Michael Ferguson  <[email protected]>
Co-authored-by: Michael Ferguson  <[email protected]>
Co-authored-by: Michael Ferguson  <[email protected]>
Co-authored-by: Michael Ferguson  <[email protected]>
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.

3 participants