Skip to content
Snippets Groups Projects
Commit 86fd55c4 authored by Mohcine Chraibi's avatar Mohcine Chraibi
Browse files

fix some aux scripts

parent bc2a0392
No related branches found
No related tags found
1 merge request!3Develop
Pipeline #
...@@ -117,7 +117,8 @@ def parse_xml_traj_file(filename): ...@@ -117,7 +117,8 @@ def parse_xml_traj_file(filename):
exit(FAILURE) exit(FAILURE)
N = int(xmldoc.getElementsByTagName('agents')[0].childNodes[0].data) N = int(xmldoc.getElementsByTagName('agents')[0].childNodes[0].data)
fps = xmldoc.getElementsByTagName('frameRate')[0].childNodes[0].data #type unicode fps = xmldoc.getElementsByTagName('frameRate')[0].childNodes[0].data #type unicode
fps = int(fps) fps = round(float(fps))
#print ("fps=", fps) #print ("fps=", fps)
#fps = int(xmldoc.getElementsByTagName('frameRate')[0].childNodes[0].data) #fps = int(xmldoc.getElementsByTagName('frameRate')[0].childNodes[0].data)
logging.info("Npeds = %d, fps = %d"%(N, fps)) logging.info("Npeds = %d, fps = %d"%(N, fps))
......
...@@ -67,7 +67,8 @@ if __name__ == '__main__': ...@@ -67,7 +67,8 @@ if __name__ == '__main__':
plt.rc("font", size=40) plt.rc("font", size=40)
for j in range(beginsteady, endsteady): for j in range(beginsteady, endsteady):
density_file = os.path.join( 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) print("loading: %s" % density_file)
density += np.loadtxt(density_file) density += np.loadtxt(density_file)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment