Skip to content
Snippets Groups Projects
Commit 347b3944 authored by Loraine Gueguen's avatar Loraine Gueguen
Browse files

fix picture_path

parent 81ed19b7
No related branches found
No related tags found
1 merge request!18Release v2.1.0
......@@ -69,11 +69,13 @@ class SpeciesData:
self.date = datetime.today().strftime("%Y-%m-%d")
self.origin = parameters_dictionary_description[constants.ORG_PARAM_DESC_ORIGIN]
self.performed = parameters_dictionary_data[constants.ORG_PARAM_DATA_PERFORMED_BY]
self.picture_path = parameters_dictionary_description[constants.ORG_PARAM_DESC_PICTURE_PATH]
if parameters_dictionary_data[constants.ORG_PARAM_DATA_GENOME_VERSION] == "":
self.genome_version = "1.0"
else:
self.genome_version = str(parameters_dictionary_data[constants.ORG_PARAM_DATA_GENOME_VERSION])
if parameters_dictionary_data[constants.ORG_PARAM_DATA_OGS_VERSION] == "":
self.ogs_version = "1.0"
else:
......@@ -92,11 +94,6 @@ class SpeciesData:
self.set_service_attribute(self.blast, constants.ORG_PARAM_SERVICES_BLAST, parameters_dictionary)
self.set_service_attribute(self.go, constants.ORG_PARAM_SERVICES_GO, parameters_dictionary)
if constants.ORG_PARAM_DESC_PICTURE_PATH in parameters_dictionary_description.keys():
self.picture_path = parameters_dictionary_description[constants.ORG_PARAM_DESC_PICTURE_PATH]
else:
self.picture_path = None
self.genus_lowercase = self.genus.lower()
self.species_lower = self.species.lower()
self.genus_uppercase = self.genus[0].upper() + self.genus_lowercase[1:]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment