Mercurial > repos > bgruening > cp_measure_image_area_occupied
diff cp_common_functions.py @ 4:20dbb1f7ec7b draft
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 35da2dcd86747c9bff138e100dbe08c6106f3780"
author | bgruening |
---|---|
date | Sat, 06 Feb 2021 09:56:21 +0000 |
parents | 534ed7b8ca34 |
children | a32c3f810ade |
line wrap: on
line diff
--- a/cp_common_functions.py Mon May 11 07:56:06 2020 -0400 +++ b/cp_common_functions.py Sat Feb 06 09:56:21 2021 +0000 @@ -1,6 +1,7 @@ INDENTATION = " " LINE_NUM_MODULES = 4 + def get_json_value(json_input, keys_path): """Returns the value specified in keys_path (using dot notation) or an empty string if the key doesn't exist""" if not isinstance(json_input, dict): @@ -21,7 +22,7 @@ else: return f"{a}_{b}" - + def get_total_number_of_modules(pipeline_lines): """Gets the number of modules from the header of the previous pipeline""" number_of_modules = pipeline_lines[LINE_NUM_MODULES].strip().split(':')[1]