Commits

Shea Garrison-Kimmel committed c8999ea

fixed snapshot naming in irate_to_gbin

  • Participants
  • Parent commits 769b11a

Comments (0)

Files changed (1)

     
     #Find all the data
     try:
-        snap = irate['Snapshot'+str(snapnum)]
+        snap = irate['Snapshot{0:05}'.format(snapnum)]
         pdata = snap['ParticleData']
     except KeyError:
         print "There is no group /Snapshot/{0:05}/ParticleData.  Please check your file format and the snapshot number you provided and try again.".format(snapnum)