Skip to content

Commit

Permalink
Merge pull request #47 from hdr-bgnn/46-fix-typerror
Browse files Browse the repository at this point in the history
Fix TypeError
  • Loading branch information
johnbradley authored Feb 5, 2023
2 parents 8fb60ed + 8fdb8bb commit 9c551ca
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Scripts/Morphology_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ def get_scale(metadata_file):
unit = "None"

if 'ruler' in metadata_dict :
scale = round(metadata_dict['ruler']['scale'],3)
scale = metadata_dict['ruler']['scale']
if scale != "None":
scale = round(scale, 3)
unit = metadata_dict['ruler']['unit']

return scale , unit
Expand Down

0 comments on commit 9c551ca

Please sign in to comment.