-
Notifications
You must be signed in to change notification settings - Fork 119
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8230570
commit 9067380
Showing
5 changed files
with
50 additions
and
44 deletions.
There are no files selected for viewing
This file contains 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 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 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,18 @@ | ||
import json | ||
import os | ||
import requests | ||
import sys | ||
|
||
FEATURE_OUTPUTS_FOLDER = sys.argv[1] | ||
|
||
# Server info | ||
host = "http://localhost:3000" | ||
|
||
skipped_path = os.path.join(FEATURE_OUTPUTS_FOLDER, "skipped_indexes.json") | ||
f = open(skipped_path, "r") | ||
data = json.load(f) | ||
url = host + "/api/local/upload-dead-features" | ||
resp = requests.post( | ||
url, | ||
json=data, | ||
) |
This file contains 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,19 @@ | ||
#!/bin/bash | ||
|
||
echo "===== This will create stubs for dead features using skipped_indexes.json." | ||
echo "===== You'll need Neuronpedia running at localhost:3000 for this to work." | ||
|
||
echo "" | ||
echo "(Step 1 of 1)" | ||
echo "What is the absolute, full local DIRECTORY PATH to your Neuronpedia batch outputs?" | ||
read outputfilesdir | ||
|
||
echo "" | ||
read -p "===== Hit ENTER to start uploading!" start | ||
|
||
echo "RUNNING: python upload_dead_feature_stubs.py $outputfilesdir" | ||
python upload_dead_feature_stubs.py $outputfilesdir | ||
|
||
echo "" | ||
echo "===== ALL DONE." | ||
echo "===== Go to http://localhost:3000 to browse your features" |
This file contains 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