Skip to content

Commit

Permalink
fix Morphology_main.py keyerror:has_ruler
Browse files Browse the repository at this point in the history
  • Loading branch information
Thibault Tabarin committed Jun 10, 2022
1 parent 21074f7 commit 3341b10
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion SLURM_Snake_v2
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ snakemake \
--cores $SLURM_NTASKS \
--snakefile $SNAKEFILE \
--use-singularity \
--use-conda \
--directory $WORKDIR \
--config list=$REAL_INPUTCSV

Expand Down
Empty file modified Scripts/Merge_files/Merge_files_main.py
100644 → 100755
Empty file.
2 changes: 1 addition & 1 deletion Scripts/Morphology/Morphology_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def get_scale(metadata_file):
data = json.load(f)
first_value = list(data.values())[0]

if first_value['ruler']==True :
if first_value['has_ruler']==True :

scale = round(first_value['scale'],3)
unit = first_value['unit']
Expand Down
4 changes: 2 additions & 2 deletions Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ rule Cropped_image:
output:'Cropped/{image}_cropped.jpg'
singularity:
'docker://ghcr.io/hdr-bgnn/bgnn_snakemake/crop_morph:0.0.10'
shell: 'Crop_image_main.py.py {input.image} {input.metadata} {output}'
shell: 'Crop_image_main.py {input.image} {input.metadata} {output}'

rule Segmentation:
input: 'Cropped/{image}_cropped.jpg'
Expand All @@ -62,7 +62,7 @@ rule Segmentation:

rule Morphological_analysis:
input:
image = 'Segmented/{image}_segmented.png'
image = 'Segmented/{image}_segmented.png',
metadata = 'Metadata/{image}.json'
#name = '{image}'
output:
Expand Down

0 comments on commit 3341b10

Please sign in to comment.