Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
KateSakharova committed Feb 20, 2024
1 parent 2a27a6e commit ea9c84f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions genomeuploader/genome_upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -416,12 +416,12 @@ def extract_ENA_info(genomeInfo, uploadDir, webin, password):
longitude = longitude.split('E')[0].strip()

if latitude:
latitude = round(float(latitude), GEOGRAPHY_DIGIT_COORDS)
latitude = str(round(float(latitude), GEOGRAPHY_DIGIT_COORDS))
else:
latitude = "not provided"

if longitude:
latitude = round(float(longitude), GEOGRAPHY_DIGIT_COORDS)
latitude = str(round(float(longitude), GEOGRAPHY_DIGIT_COORDS))
else:
longitude = "not provided"

Expand Down Expand Up @@ -494,12 +494,12 @@ def combine_ENA_info(genomeInfo, ENADict):
latitude = latitList[0]
if multipleElementSet(latitList):
latitude = "not provided"
genomeInfo[g]["latitude"] = latitude
genomeInfo[g]["latitude"] = str(round(float(latitude), GEOGRAPHY_DIGIT_COORDS))

longitude = longList[0]
if multipleElementSet(longList):
longitude = "not provided"
genomeInfo[g]["longitude"] = longitude
genomeInfo[g]["longitude"] = str(round(float(longitude), GEOGRAPHY_DIGIT_COORDS))

samples = samplesList[0]
if multipleElementSet(samplesList):
Expand Down

0 comments on commit ea9c84f

Please sign in to comment.