Skip to content

Instantly share code, notes, and snippets.

@chriszf
Created April 9, 2012 16:28
Show Gist options
  • Save chriszf/2344561 to your computer and use it in GitHub Desktop.
Save chriszf/2344561 to your computer and use it in GitHub Desktop.
Every academic program ever
analysis_mode = get_mode_from_input()
if analysis_mode == 1:
# Do Pearson correlation
data = load_data()
elif analysis_mode == 2:
# Do Spearman rank
data = load_data()
elif analysis_mode == 3:
# Do a literature correlation lookup
data = load_literature_data()
if analysis_mode == 3:
new_data = []
for i in data:
d = reformat_literature_data(data)
new_data.append(d)
data = new_data
if analysis_mode == 1:
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment