keep unaligned reconstruction file

pull/992/head
Piero Toffanin 2019-05-30 08:17:36 -04:00
rodzic c1cf75ac1e
commit d27da26f10
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -113,6 +113,7 @@ class ODMSplitStage(types.ODM_Stage):
sp_octx = OSFMContext(sp)
aligned_recon = sp_octx.path('reconstruction.aligned.json')
unaligned_recon = sp_octx.path('reconstruction.unaligned.json')
main_recon = sp_octx.path('reconstruction.json')
if not io.file_exists(aligned_recon):
@ -123,7 +124,7 @@ class ODMSplitStage(types.ODM_Stage):
continue
if io.file_exists(main_recon):
os.remove(main_recon)
shutil.move(main_recon, unaligned_recon)
shutil.move(aligned_recon, main_recon)
log.ODM_DEBUG("%s is now %s" % (aligned_recon, main_recon))