Commit 86fd55c4 authored by Mohcine Chraibi's avatar Mohcine Chraibi

fix some aux scripts

parent bc2a0392
Pipeline #5099 passed with stages
in 1 minute and 16 seconds
......@@ -117,7 +117,8 @@ def parse_xml_traj_file(filename):
exit(FAILURE)
N = int(xmldoc.getElementsByTagName('agents')[0].childNodes[0].data)
fps = xmldoc.getElementsByTagName('frameRate')[0].childNodes[0].data #type unicode
fps = int(fps)
fps = round(float(fps))
#print ("fps=", fps)
#fps = int(xmldoc.getElementsByTagName('frameRate')[0].childNodes[0].data)
logging.info("Npeds = %d, fps = %d"%(N, fps))
......
......@@ -67,7 +67,8 @@ if __name__ == '__main__':
plt.rc("font", size=40)
for j in range(beginsteady, endsteady):
density_file = os.path.join(
pathfile, "density", "Prf_d_%s_id_1_%.5d.dat" % (nametraj, j))
pathfile, "density", "Prf_d_%s
_id_1_%.5d.dat" % (nametraj, j))
print("loading: %s" % density_file)
density += np.loadtxt(density_file)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment