try:
os.mkdir(exportdir)
except:
- print 'mkdir error, maybe the export directory already exists?'
+ print('mkdir error, maybe the export directory already exists?')
def h5exportfunc(name):
Deflname=name
notes=f[Deflname].attrs['IGORWaveNote']
springmatch=notes.index("SpringConstant: ")+len("SpringConstant: ")
springc=notes[springmatch:].split("\r",1)[0] #probably extracting the leading numbers can be way more elegant than this
- print Deflname
+ print(Deflname)
except:
- print 'Something bad happened with '+Deflname+', ignoring it'
+ print('Something bad happened with '+Deflname+
+ ', ignoring it')
return None
#returning anything but None halts the visit procedure