original_docstring: Downloads the final zip containing the output fo Antares
  
          Args:
              study: The study that will be downloaded
  
          Returns:
              True if the zip has been successfully downloaded, false otherwise
          
docstring: Downloads the final zip containing the output fo Antares
docstring_tokens: Downloads the final zip containing the output fo Antares
code: def download_final_zip(self, study: StudyDTO):
          """Downloads the final zip containing the output fo Antares
  
          Args:
              study: The study that will be downloaded
  
          Returns:
              True if the zip has been successfully downloaded, false otherwise
          """
          final_zip_name = self.slurm_script_features.get_final_zip_name(
              study.name, study.job_id, study.run_mode
          )
  
          if self.check_final_zip_not_empty(study, final_zip_name):
              if study.local_final_zipfile_path:
                  local_final_zipfile_path = study.local_final_zipfile_path
              else:
                  local_final_zipfile_path = str(Path(study.output_dir) / final_zip_name)
                  src = self.remote_base_path + "/" + final_zip_name
                  dst = str(local_final_zipfile_path)
                  if not self.connection.download_file(src, dst):
                      local_final_zipfile_path = None
          else:
              local_final_zipfile_path = None
          return local_final_zipfile_path
code_tokens: def download_final_zip ( self , study : StudyDTO ) : final_zip_name = self . slurm_script_features . get_final_zip_name ( study . name , study . job_id , study . run_mode ) if self . check_final_zip_not_empty ( study , final_zip_name ) : if study . local_final_zipfile_path : local_final_zipfile_path = study . local_final_zipfile_path else : local_final_zipfile_path = str ( Path ( study . output_dir ) / final_zip_name ) src = self . remote_base_path + "/" + final_zip_name dst = str ( local_final_zipfile_path ) if not self . connection . download_file ( src , dst ) : local_final_zipfile_path = None else : local_final_zipfile_path = None return local_final_zipfile_path
short_docstring: Downloads the final zip containing the output fo Antares
short_docstring_tokens: Downloads the final zip containing the output fo Antares
comment: """Downloads the final zip containing the output fo Antares
  
          Args:
              study: The study that will be downloaded
  
          Returns:
              True if the zip has been successfully downloaded, false otherwise
          """