Skip to content

Instantly share code, notes, and snippets.

@crmccreary
Created June 23, 2011 18:17
Show Gist options
  • Save crmccreary/1043175 to your computer and use it in GitHub Desktop.
Save crmccreary/1043175 to your computer and use it in GitHub Desktop.
Writes out abaqus data lines, 4 pairs per line
for i,(time,temp) in enumerate(time_temp):
if not (i % 4):
f_amp.write('\n')
f_amp.write('%s,%s,' % (time,temp))
f_amp.write('\n')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment