From 42a068bf65f2d22fbdf4ce89cba69f71442ed73f Mon Sep 17 00:00:00 2001 From: Ekaterina Sakharova Date: Tue, 20 Feb 2024 14:52:17 +0000 Subject: [PATCH] test --- genomeuploader/genome_upload.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/genomeuploader/genome_upload.py b/genomeuploader/genome_upload.py index 92e483a..f258d00 100755 --- a/genomeuploader/genome_upload.py +++ b/genomeuploader/genome_upload.py @@ -402,7 +402,7 @@ def extract_ENA_info(genomeInfo, uploadDir, webin, password): sampleInfo = ena.get_sample(sampleAccession, webin, password) print(sampleInfo) location = sampleInfo["location"] - latitude, longitude = '', '' + latitude, longitude = None, None if 'N' in location: latitude = location.split('N')[0].strip() longitude = location.split('N')[1].strip() @@ -415,12 +415,15 @@ def extract_ENA_info(genomeInfo, uploadDir, webin, password): elif longitude.endswith('E'): longitude = longitude.split('E')[0].strip() + print(latitude, longitude) if latitude: + print('!') latitude = "{:.8f}".format(float(latitude)) else: latitude = "not provided" - + print(latitude, longitude) if longitude: + print('!!!') latitude = "{:.8f}".format(float(longitude)) else: longitude = "not provided"