Skip to content

Commit 90b1b18

Browse files
committed
PEP8
1 parent df3cd31 commit 90b1b18

File tree

2 files changed

+15
-8
lines changed

2 files changed

+15
-8
lines changed

hexrdgui/image_canvas.py

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,9 @@
3535
)
3636
from hexrdgui.utils.tth_distortion import apply_tth_distortion_if_needed
3737

38-
FONTSIZE_LABEL=15
39-
FONTSIZE_TICKS=15
38+
FONTSIZE_LABEL = 15
39+
FONTSIZE_TICKS = 15
40+
4041

4142
class ImageCanvas(FigureCanvas):
4243

@@ -1089,7 +1090,9 @@ def finish_show_polar(self, iviewer):
10891090
HexrdConfig().last_unscaled_azimuthal_integral_data = unscaled
10901091

10911092
self.azimuthal_integral_axis = axis
1092-
axis.set_ylabel(r'Azimuthal Average', fontsize=FONTSIZE_LABEL, family='serif')
1093+
axis.set_ylabel(r'Azimuthal Average',
1094+
fontsize=FONTSIZE_LABEL, family='serif')
1095+
10931096
self.update_azimuthal_plot_overlays()
10941097
self.update_wppf_plot()
10951098

@@ -1170,13 +1173,15 @@ def finish_show_polar(self, iviewer):
11701173
'interpolation': 'none',
11711174
}
11721175
self.axes_images.append(self.axis.imshow(**kwargs))
1173-
self.axis.set_ylabel(r'$\phi$ [deg]', fontsize=FONTSIZE_LABEL, family='serif')
1176+
self.axis.set_ylabel(r'$\phi$ [deg]',
1177+
fontsize=FONTSIZE_LABEL, family='serif')
11741178
else:
11751179
rescale_image = False
11761180
self.axes_images[0].set_data(img)
11771181

11781182
# Update the xlabel in case it was modified (via tth distortion)
1179-
self.axis.set_xlabel(self.polar_xlabel, fontsize=FONTSIZE_LABEL, family='serif')
1183+
self.axis.set_xlabel(self.polar_xlabel,
1184+
fontsize=FONTSIZE_LABEL, family='serif')
11801185

11811186

11821187
if rescale_image:
@@ -1277,8 +1282,9 @@ def polar_x_axis_type(self):
12771282

12781283
def on_polar_x_axis_type_changed(self):
12791284
# Update the x-label
1280-
self.azimuthal_integral_axis.set_xlabel(self.polar_xlabel,
1281-
fontsize=FONTSIZE_LABEL, family='serif')
1285+
self.azimuthal_integral_axis.set_xlabel(
1286+
self.polar_xlabel, fontsize=FONTSIZE_LABEL,
1287+
family='serif')
12821288

12831289
# Still need to draw if the x-label was modified
12841290
self.draw_idle()

hexrdgui/overlays/powder_overlay.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -654,7 +654,8 @@ def pinhole_distortion_kwargs(self):
654654
kwargs = self.tth_distortion_kwargs.copy()
655655
if self.pinhole_distortion_type == 'RyggPinholeDistortion':
656656
# Add our absorption length
657-
kwargs['absorption_length'] = HexrdConfig().absorption_length() * 1e-3
657+
kwargs['absorption_length'] = HexrdConfig(
658+
).absorption_length() * 1e-3
658659
return kwargs
659660
# END PolarDistortionObject mixin reroutes
660661

0 commit comments

Comments
 (0)