Created
May 1, 2017 22:08
-
-
Save katyhuff/bb7bb6be997bf5faf09b6b04b7155e2f to your computer and use it in GitHub Desktop.
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
def main(): | |
step = 0 | |
output[step] = somefile | |
for step in dep_steps: | |
infile = rewrite_infile(output[step-1]) | |
output[step] = run_serpent(infile) | |
def rewrite_infile(outfile): | |
#do stuff with pyne | |
def run_serpent(infile): | |
# copy infile to runfile | |
subprocess.check_output(['qsub', 'serp_qsub_file']) | |
# copy outfile to output[step] | |
return output[step] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment