Skip to content

Instantly share code, notes, and snippets.

@katyhuff
Created May 1, 2017 22:08
Show Gist options
  • Save katyhuff/bb7bb6be997bf5faf09b6b04b7155e2f to your computer and use it in GitHub Desktop.
Save katyhuff/bb7bb6be997bf5faf09b6b04b7155e2f to your computer and use it in GitHub Desktop.
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