original_docstring: Submits the Antares job to slurm
  
          Args:
              my_study: The study data transfer object
  
          Returns:
              The slurm job id if the study has been submitted
  
          Raises:
              SubmitJobErrorException if the job has not been successfully submitted
          
docstring: Submits the Antares job to slurm
  Args:
  my_study: The study data transfer object
  
  The slurm job id if the study has been submitted
  
  SubmitJobErrorException if the job has not been successfully submitted
docstring_tokens: Submits the Antares job to slurm Args : my_study : The study data transfer object The slurm job id if the study has been submitted SubmitJobErrorException if the job has not been successfully submitted
code: def submit_job(self, my_study: StudyDTO):
          """Submits the Antares job to slurm
  
          Args:
              my_study: The study data transfer object
  
          Returns:
              The slurm job id if the study has been submitted
  
          Raises:
              SubmitJobErrorException if the job has not been successfully submitted
          """
          time_limit = self.convert_time_limit_from_seconds_to_minutes(
              my_study.time_limit
          )
          script_params = ScriptParametersDTO(
              study_dir_name=Path(my_study.path).name,
              input_zipfile_name=Path(my_study.zipfile_path).name,
              time_limit=time_limit,
              n_cpu=my_study.n_cpu,
              antares_version=my_study.antares_version,
              run_mode=my_study.run_mode,
              post_processing=my_study.post_processing,
          )
          command = self.compose_launch_command(script_params)
          output, error = self.connection.execute_command(command)
          if error:
              raise SubmitJobErrorException
          job_id = self._get_jobid_from_output_of_submit_command(output)
          return job_id
code_tokens: def submit_job ( self , my_study : StudyDTO ) : time_limit = self . convert_time_limit_from_seconds_to_minutes ( my_study . time_limit ) script_params = ScriptParametersDTO ( study_dir_name = Path ( my_study . path ) . name , input_zipfile_name = Path ( my_study . zipfile_path ) . name , time_limit = time_limit , n_cpu = my_study . n_cpu , antares_version = my_study . antares_version , run_mode = my_study . run_mode , post_processing = my_study . post_processing , ) command = self . compose_launch_command ( script_params ) output , error = self . connection . execute_command ( command ) if error : raise SubmitJobErrorException job_id = self . _get_jobid_from_output_of_submit_command ( output ) return job_id
short_docstring: Submits the Antares job to slurm
  Args:
  my_study: The study data transfer object
short_docstring_tokens: Submits the Antares job to slurm Args : my_study : The study data transfer object
comment: """Submits the Antares job to slurm
  
          Args:
              my_study: The study data transfer object
  
          Returns:
              The slurm job id if the study has been submitted
  
          Raises:
              SubmitJobErrorException if the job has not been successfully submitted
          """