fixed path string to clean up .bak files

This commit is contained in:
ken
2024-07-21 22:13:59 -07:00
parent 5b6e959727
commit ab6e761128
+1 -1
View File
@@ -92,7 +92,7 @@ def create_notebooks(date, num_datasets):
subprocess.getoutput('sed -i .bak "s/LOGNUM=LOGCOUNT-1/LOGNUM=%d/g" "../%s Data/flights/%s/%s-%d_ems.ipynb"' % (i,PLANE,date,FNDATE,i))
subprocess.getoutput('jupyter nbconvert --to notebook --execute "../%s Data/flights/%s/%s-%d_ems.ipynb"' % (PLANE,date,FNDATE,i))
# clean up .bak files
subprocess.getoutput('rm "../%s Data/flights/%s/*.bak"' % (PLANE,date))
subprocess.getoutput("rm ../%s\ Data/flights/%s/*.bak" % (PLANE,date))
else: # single dataset
print("set up ipynb")
# efis