Skip to content

Commit

Permalink
pep8/clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
bhilbert4 committed May 23, 2024
1 parent 01d4cd5 commit 6932bd5
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions jwql/utils/preview_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -494,12 +494,8 @@ def make_figure(self, image, integration_number, min_value, max_value,
# This seems to correctly remove the ticks and labels we want to remove. It gives a warning that
# it doesn't work on log scales, which we don't care about. So let's ignore that warning.
warnings.filterwarnings("ignore", message="AutoMinorLocator does not work with logarithmic scale")
#if xsize <= ysize:

print(self.file, xsize, ysize, xsize/ysize)
xyratio = xsize / ysize


if xyratio < 1.6:
# For apertures that are taller than they are wide, square, or that are wider than
# they are tall but still reasonably close to square, put the colorbar on the right
Expand All @@ -509,7 +505,7 @@ def make_figure(self, image, integration_number, min_value, max_value,
if xyratio > 0.4:
cb_width = 0.05
else:
cb_width = 0.05 * 0.4/xyratio
cb_width = 0.05 * 0.4 / xyratio

upper_x_anchor = 0.02
if xyratio < 0.1:
Expand Down

0 comments on commit 6932bd5

Please sign in to comment.