From 637bc75147fc72388610e67c12e7dea4f7b6d4d9 Mon Sep 17 00:00:00 2001 From: Carl Fischer Date: Mon, 23 Jul 2012 20:46:46 -0400 Subject: [PATCH] Imported NewTechnology before using it Where do we find NewTechnology? The __future__, of course! --- doscience.py | 55 ++++++++++++++++++++++++++-------------------------- 1 file changed, 28 insertions(+), 27 deletions(-) diff --git a/doscience.py b/doscience.py index da3d7f0..e8bbf89 100644 --- a/doscience.py +++ b/doscience.py @@ -1,27 +1,28 @@ -from multiprocessing import Pool - -## exploration and discovery -try: - from PriorExperience import insight, serendipity - my_new_idea = gen_ideas(insight, serendipity, NewTechnology) -except: - my_new_idea = copy.copy(somebody_elses_idea) - -## get funding and build a team -funded = False -while not funded: - proposal = gen_proposal(my_new_idea).submit() - wait(SIX_MONTHS) - funded = proposal.was_funded - -grads = Pool(5) -postdocs = Pool(3) -undergrads = Pool(8) - -## do the work and write it up -results = get_data(grads, postdocs, undergrads, proposal.cash).findresult() -paper = results.write_paper() -paper.submit(journal="Science") # this will be accepted without revision - -## reap rewards -cv_item = collect_prize(type="Nobel", thank=",".join([x.name for x in grads])) +from multiprocessing import Pool + +## exploration and discovery +try: + from PriorExperience import insight, serendipity + from __future__ import NewTechnology + my_new_idea = gen_ideas(insight, serendipity, NewTechnology) +except: + my_new_idea = copy.copy(somebody_elses_idea) + +## get funding and build a team +funded = False +while not funded: + proposal = gen_proposal(my_new_idea).submit() + wait(SIX_MONTHS) + funded = proposal.was_funded + +grads = Pool(5) +postdocs = Pool(3) +undergrads = Pool(8) + +## do the work and write it up +results = get_data(grads, postdocs, undergrads, proposal.cash).findresult() +paper = results.write_paper() +paper.submit(journal="Science") # this will be accepted without revision + +## reap rewards +cv_item = collect_prize(type="Nobel", thank=",".join([x.name for x in grads]))