Skip to content
Snippets Groups Projects
Commit fe8c9b6c authored by Valentin Genin's avatar Valentin Genin
Browse files

Fix light_version condition from str to bool

parent debeea19
No related branches found
No related tags found
1 merge request!27Remove args for multi
This commit is part of merge request !27. Comments created here will be created in the context of that merge request.
......@@ -544,7 +544,7 @@ if __name__ == "__main__":
func_utils.silentremove(output_dir, interf_roi)
if light_version == "yes":
if light_version is True:
func_utils.log(logging.INFO, "\n Removing files for light version \n")
func_utils.silentremove(output_dir, dop_file)
func_utils.silentremove(output_dir, demProj_Slave)
......@@ -559,7 +559,7 @@ if __name__ == "__main__":
func_utils.silentremove(output_dir, i_file)
if light_version == "yes":
if light_version is True:
func_utils.log(logging.INFO, "\n Removing files for light version \n")
if os.path.exists(os.path.join(master_data_dir, dop_file)):
func_utils.silentremove(master_data_dir, dop_file)
......
......@@ -372,7 +372,7 @@ if __name__ == "__main__":
# Master deramp
if light_version == "no":
if light_version is not True:
masterDeramp = os.path.splitext(master_Image_base)[0]+"_deramp.tif"
Con_masterDeramp = os.path.join(master_data_dir, masterDeramp)
diapOTBApp.concatenate(Deramp_BurstToConcatenateM, master_Image, firstBurst, Con_masterDeramp)
......@@ -393,7 +393,7 @@ if __name__ == "__main__":
# ###### Concatenating and georeferencing bursts ###### #
# Slave Deramp
if light_version == "no":
if light_version is not True:
Con_slaveDeramp = os.path.splitext(master_Image_base)[0] + "_deramp.tif"
diapOTBApp.concatenate(Deramp_BurstToConcatenateS, slave_Image, firstBurst, Con_slaveDeramp)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment