-
Notifications
You must be signed in to change notification settings - Fork 7
Web changes for NWB conversion #344
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
Open
caroljiangg
wants to merge
13
commits into
master
Choose a base branch
from
cj-nwb-conversion
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 3 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
e538ff8
draft
5da4fbe
merge master
75a9e4b
Merge branch 'master' into cj-nwb-conversion
deirdre-k 66878c3
remove competition
caroljiangg e47d48c
convert text
caroljiangg ae6650e
dandiset file text
caroljiangg be56f64
upload json text
caroljiangg f4e288f
download json text
caroljiangg 9399c6b
optional zip
b260596
merge
dac7984
delete exp_path
841e540
string descriptions example json
d134608
new success page
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,57 @@ | ||
| {% extends "benchmarks/components/app-view.html" %} | ||
| {% load static %} | ||
|
|
||
| {% block banner %} | ||
| <h1> Convert NWB Data </h1> | ||
| <p>Here you can convert your NWB data to BrainScore</p> | ||
caroljiangg marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| {% endblock %} | ||
|
|
||
| {% block info_section %} | ||
| {% include "benchmarks/tutorials/tutorial-info-section.html" %} | ||
| {% endblock %} | ||
|
|
||
|
|
||
| {% block content %} | ||
|
|
||
| {% if user %} | ||
| <div class="box leaderboard-table-component"> | ||
| <h1 style="font-size: 1.25em;">Upload a JSON file containing the required NWB metadata</h1> | ||
caroljiangg marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| <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> | ||
deirdre-k marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| Download JSON template | ||
| </a> | ||
caroljiangg marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| <form action="" method="post" enctype="multipart/form-data"> | ||
| {% csrf_token %} | ||
|
|
||
| {% for field in form %} | ||
| <p class="special"> | ||
| <br> | ||
| {{ field.label_tag }} | ||
| <br> | ||
| {{ field }} | ||
| <br> | ||
| {% if field.help_text %} | ||
| <small style="display: none">{{ field.help_text }}</small> | ||
| {% endif %} | ||
| {% for error in field.errors %} | ||
| <p style="color: red">{{ error }}</p> | ||
| {% endfor %} | ||
| </p> | ||
| {% endfor %} | ||
| </p> | ||
| <br> | ||
| <button type="submit" class="button submission">Package Data</button> | ||
| <br> | ||
| </form> | ||
| <br> | ||
| <button onclick="location.href='logout/'" type="button" class="button button-primary tutorial_no_top">Logout</button> | ||
| </div> | ||
| {% else %} | ||
| {% endif %} | ||
|
|
||
| {% endblock %} | ||
|
|
||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| { | ||
| "dandiset_id": "000788", | ||
| "nwb_file_path": "sub-pico/sub-pico_ecephys.nwb", | ||
deirdre-k marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| "exp_path": "/home/ubuntu/vision/brainscore_vision/nwb_integration/", | ||
deirdre-k marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| "identifier": "DataGenerationTrial_emogan", | ||
| "assembly": { | ||
| "region": ["IT"], | ||
| "presentation": 8500, | ||
| "neuroid": 18, | ||
| "start_time_ms": 0, | ||
| "stop_time_ms": 300, | ||
| "tb_ms": 10 | ||
| }, | ||
| "stimulus_set": { | ||
| "length": 170 | ||
| } | ||
| } | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.