Skip to content

Instantly share code, notes, and snippets.

@freeman-lab
Last active June 8, 2016 18:46
Show Gist options
  • Save freeman-lab/b7cdcf852eacb602d0cd to your computer and use it in GitHub Desktop.
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
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))
@freeman-lab
Copy link
Author

this "algorithm" generates garbage, and is intended only as an example of how to create a results file!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment