diff --git a/CEP/Pipeline/recipes/sip/nodes/long_baseline.py b/CEP/Pipeline/recipes/sip/nodes/long_baseline.py index 244107a677c9943ba580f2b6b228b3b806203339..2fe0aa3e405dcb572376a9ef3a6d7094fa883491 100644 --- a/CEP/Pipeline/recipes/sip/nodes/long_baseline.py +++ b/CEP/Pipeline/recipes/sip/nodes/long_baseline.py @@ -58,6 +58,8 @@ class long_baseline(LOFARnodeTCP): # I. Create the directories used in this recipe create_directory(processed_ms_dir) create_directory(working_dir) + create_directory(os.path.dirname(output_measurement_set)) + create_directory(os.path.dirname(final_output_path)) # time slice dir_to_remove: assure empty directory: Stale data # is problematic for dppp @@ -499,12 +501,6 @@ class long_baseline(LOFARnodeTCP): table = pt.table(output_measurement_set) - try: - os.makedirs(os.path.dirname(final_output_path)) - except: - pass # do nothing, the path already exists, we can output to this - # location - table.copy(final_output_path, deep=True)