Last active
June 8, 2016 18:46
-
-
Save freeman-lab/b7cdcf852eacb602d0cd to your computer and use it in GitHub Desktop.
example neurofinder algorithm : uses a fixed two-pixel region for all neurons
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
import json | |
datasets = ['00.00.test', '00.01.test', '01.00.test', '01.01.test', '02.00.test', '02.01.test', '03.00.test', '04.00.test', '04.01.test'] | |
submission = [] | |
for dataset in datasets: | |
result = {'dataset': dataset, 'regions': [{'coordinates': [[0, 0], [0, 1]]}]} | |
submission.append(result) | |
with open('submission.json', 'w') as f: | |
f.write(json.dumps(submission)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
this "algorithm" generates garbage, and is intended only as an example of how to create a results file!