Skip to content
Snippets Groups Projects

Release v2.1.0

Merged Loraine Gueguen requested to merge dev into master
Compare and Show latest version
1 file
+ 4
2
Compare changes
  • Side-by-side
  • Inline
+ 4
2
@@ -14,9 +14,11 @@ def clean_string(string):
cleaned_string = string \
.replace(" ", "_") \
.replace("-", "_") \
.replace(".", "_") \
.replace("(", "") \
.replace(")", "") \
.replace("'", "").strip()
.replace("'", "")\
.strip()
return cleaned_string
else:
return string
@@ -71,7 +73,7 @@ class SpeciesData:
self.genus = clean_string(parameters_dictionary_description[constants.ORG_PARAM_DESC_GENUS])
self.strain = clean_string(parameters_dictionary_description[constants.ORG_PARAM_DESC_STRAIN])
self.sex = clean_string(parameters_dictionary_description[constants.ORG_PARAM_DESC_SEX])
self.common_name = clean_string(parameters_dictionary_description[constants.ORG_PARAM_DESC_COMMON_NAME])
self.common_name = parameters_dictionary_description[constants.ORG_PARAM_DESC_COMMON_NAME]
self.date = datetime.today().strftime("%Y-%m-%d")
self.origin = parameters_dictionary_description[constants.ORG_PARAM_DESC_ORIGIN]
Loading