Skip to content

Commit 4e306e5

Browse files
committed
Black.
1 parent 5f4e2d5 commit 4e306e5

File tree

3 files changed

+25
-7
lines changed

3 files changed

+25
-7
lines changed

src/astrohack/antenna/polygon_panel.py

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,24 +5,39 @@
55

66
class PolygonPanel(BasePanel):
77

8-
def __init__(self, label, model, panel_info, panel_margin, plot_screw_size=0.20,):
8+
def __init__(
9+
self,
10+
label,
11+
model,
12+
panel_info,
13+
panel_margin,
14+
plot_screw_size=0.20,
15+
):
916
"""
1017
Initializes a polygon based panel based on a polygon shape and the screw positions
1118
Args:
1219
label: panel label
1320
model: What model of surface to be used in fitting ["rigid", "mean", "xyparaboloid", "rotatedparaboloid"]
1421
panel_info: Dictionary with panel information
1522
"""
16-
if 'corotated' in model:
23+
if "corotated" in model:
1724
raise Exception(
1825
f"corotated models such as {model} are not supported for Polygon based panels"
1926
)
2027

21-
poly = Polygon(panel_info['polygon'])
28+
poly = Polygon(panel_info["polygon"])
2229

23-
screws = panel_info['screws']
24-
super().__init__(model, screws, screws, plot_screw_size, label,
25-
center=[poly.centroid.x, poly.centroid.y], zeta=None, ref_points=None,)
30+
screws = panel_info["screws"]
31+
super().__init__(
32+
model,
33+
screws,
34+
screws,
35+
plot_screw_size,
36+
label,
37+
center=[poly.centroid.x, poly.centroid.y],
38+
zeta=None,
39+
ref_points=None,
40+
)
2641
self.polygon = poly
2742
self.margin = panel_margin
2843

src/astrohack/antenna/telescope.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,9 @@ def build_panel_list(self, panel_model, panel_margins):
407407
return panel_list
408408

409409
@staticmethod
410-
def attribute_pixels_to_panels(panel_list, u_axis, v_axis, radius, _, deviation, mask):
410+
def attribute_pixels_to_panels(
411+
panel_list, u_axis, v_axis, radius, _, deviation, mask
412+
):
411413

412414
panel_map = np.full_like(radius, np.nan)
413415
for ix, xc in enumerate(u_axis):

src/astrohack/utils/ray_tracing_general.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ def simple_axis(minmax, resolution, margin=0.05):
4949
axis_array = axis_array + mini + resolution / 2
5050
return axis_array
5151

52+
5253
def np_qps_fitting(pcd):
5354
npnt = pcd.shape[0]
5455
pcd_xy = pcd[:, 0:2]

0 commit comments

Comments
 (0)