Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: April Shen <[email protected]>
  • Loading branch information
tcezard and apriltuesday authored Aug 30, 2024
1 parent 06e3b23 commit f76b155
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion eva_sub_cli/nextflow/validation.nf
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ process sample_name_concordance {

script:
"""
$params.python_scripts.samples_checker --metadata_json $metadata_json --vcf_files $vcf_files --output_yaml sample_checker.yml > sample_checker.log
$params.python_scripts.samples_checker --metadata_json $metadata_json --vcf_files $vcf_files --output_yaml sample_checker.yml > sample_checker.log 2>&1
"""
}

Expand Down
2 changes: 1 addition & 1 deletion eva_sub_cli/submit.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def _upload_file(self, submission_upload_url, input_file):
base_name = os.path.basename(input_file)
self.debug(f'Transfer {base_name} to EVA FTP')
with open(input_file, 'rb') as f:
r = requests.put(os.path.join(submission_upload_url, base_name), data=open(input_file, 'rb'))
r = requests.put(os.path.join(submission_upload_url, base_name), data=f)
r.raise_for_status()
self.debug(f'Upload of {base_name} completed')

Expand Down

0 comments on commit f76b155

Please sign in to comment.