Skip to content
Snippets Groups Projects
Commit 7ff14e42 authored by Arthur Le Bars's avatar Arthur Le Bars
Browse files

Fix typo in parameter name in gga_init

parent 39a9162b
No related branches found
No related tags found
2 merge requests!18Release v2.1.0,!14Add a picture in Tripal home page
...@@ -81,13 +81,13 @@ class DeploySpeciesStack(speciesData.SpeciesData): ...@@ -81,13 +81,13 @@ class DeploySpeciesStack(speciesData.SpeciesData):
if self.tripal_species_picture.endswith("png"): if self.tripal_species_picture.endswith("png"):
species_picture_dest_path = os.path.join(self.species_dir, os.path.abspath("species.png")) species_picture_dest_path = os.path.join(self.species_dir, os.path.abspath("species.png"))
try: try:
os.symlink(os.path.abspath(self.tripal_species_picture, species_picture_dest_path)) os.symlink(os.path.abspath(self.tripal_species_picture), species_picture_dest_path)
except FileNotFoundError: except FileNotFoundError:
logging.info("Specified organism picture ({0}) not found for {1}".format(self.tripal_species_picture, self.genus_upper + " " + self.species)) logging.info("Specified organism picture ({0}) not found for {1}".format(self.tripal_species_picture, self.genus_upper + " " + self.species))
elif self.tripal_species_picture.endswith("jpg"): elif self.tripal_species_picture.endswith("jpg"):
species_picture_dest_path = os.path.join(self.species_dir, os.path.abspath("species.jpg")) species_picture_dest_path = os.path.join(self.species_dir, os.path.abspath("species.jpg"))
try: try:
os.symlink(os.path.abspath(self.tripal_species_picture, species_picture_dest_path)) os.symlink(os.path.abspath(self.tripal_species_picture), species_picture_dest_path)
except FileNotFoundError: except FileNotFoundError:
logging.info("Specified organism picture ({0}) not found for {1}".format(self.tripal_species_picture, self.genus_upper + " " + self.species)) logging.info("Specified organism picture ({0}) not found for {1}".format(self.tripal_species_picture, self.genus_upper + " " + self.species))
......
...@@ -89,7 +89,7 @@ class SpeciesData: ...@@ -89,7 +89,7 @@ class SpeciesData:
self.blast = "0" self.blast = "0"
if constants.ORG_PARAM_DESC_PICTURE_PATH in parameters_dictionary_description.keys(): if constants.ORG_PARAM_DESC_PICTURE_PATH in parameters_dictionary_description.keys():
self.tripal_species_picture = parameters_dictionary_services[constants.ORG_PARAM_DESC_PICTURE_PATH] self.tripal_species_picture = parameters_dictionary_description[constants.ORG_PARAM_DESC_PICTURE_PATH]
else: else:
self.tripal_species_picture = None self.tripal_species_picture = None
......
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