Skip to content

Commit

Permalink
PEP8
Browse files Browse the repository at this point in the history
  • Loading branch information
ddobie committed Jan 9, 2025
1 parent da1ab73 commit 31b97a3
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions vasttools/source.py
Original file line number Diff line number Diff line change
Expand Up @@ -893,8 +893,8 @@ def show_png_cutout(
crossmatch radius, defaults to `False`.
hide_beam: Hide the beam on the plot, defaults to `False`.
size: Size of the cutout, defaults to None.
force_cutout_fetch: Whether to force the re-fetching of the cutout data,
defaults to `False`.
force_cutout_fetch: Whether to force the re-fetching of the cutout
data, defaults to `False`.
offset_axes: Use offset, rather than absolute, axis labels.
Returns:
Expand Down Expand Up @@ -1352,7 +1352,7 @@ def show_all_png_cutouts(
outfile: Optional[str] = None,
save: bool = False,
size: Optional[Angle] = None,
stampsize: Optional[Tuple[float, float]] = (4,4),
stampsize: Optional[Tuple[float, float]] = (4, 4),
figsize: Optional[Tuple[float, float]] = None,
force_cutout_fetch: bool = False,
no_selavy: bool = False,
Expand Down Expand Up @@ -1406,11 +1406,11 @@ def show_all_png_cutouts(

num_plots = self.measurements.shape[0]
nrows = int(np.ceil(num_plots / columns))

if figsize is None:
if stampsize is None:
raise ValueError("Stampsize and Figsize cannot both be None")
figsize = (stampsize[0]*columns, stampsize[1]*nrows)
figsize = (stampsize[0] * columns, stampsize[1] * nrows)

fig = plt.figure(figsize=figsize)
fig.tight_layout()
Expand Down Expand Up @@ -1824,8 +1824,8 @@ def make_png(
save: If `True` the plot is saved rather than the figure being
returned, defaults to `False`.
size: Size of the cutout, defaults to None.
force_cutout_fetch: Whether to force the re-fetching of the cutout data,
defaults to `False`.
force_cutout_fetch: Whether to force the re-fetching of the cutout
data, defaults to `False`.
disable_autoscaling: Turn off the consistent normalization and
calculate the normalizations separately for each observation,
defaults to `False`.
Expand Down

0 comments on commit 31b97a3

Please sign in to comment.