Skip to content

Commit

Permalink
fixed bug that parallelogram and ellipse would not contain correct si…
Browse files Browse the repository at this point in the history
…ze params in output dict
  • Loading branch information
LynnSchmittwilken committed Feb 22, 2023
1 parent 33e0c02 commit 92acc3c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions stimupy/components/shapes.py
Expand Up @@ -431,9 +431,9 @@ def parallelogram(
return {
"img": img * (intensity_parallelogram - intensity_background) + intensity_background,
"shape_mask": img.astype(int),
"shape": shape,
"visual_size": visual_size,
"ppd": ppd,
"shape": base["shape"],
"visual_size": base["visual_size"],
"ppd": base["ppd"],
"parallelogram_size": parallelogram_size,
"intensity_background": intensity_background,
"intensity_parallelogram": intensity_parallelogram,
Expand Down Expand Up @@ -520,9 +520,9 @@ def ellipse(
return {
"img": img * (intensity_ellipse - intensity_background) + intensity_background,
"shape_mask": img.astype(int),
"shape": shape,
"visual_size": visual_size,
"ppd": ppd,
"shape": base["shape"],
"visual_size": base["visual_size"],
"ppd": base["ppd"],
"radius": radius,
"intensity_background": intensity_background,
"intensity_ellipse": intensity_ellipse,
Expand Down

0 comments on commit 92acc3c

Please sign in to comment.