astrohack.antenna.base_panel

Classes

BasePanel

Module Contents

class BasePanel(model, screws, plot_screw_pos, plot_screw_size, label, center=None, zeta=None, ref_points=None)[source]
markers = ['X', 'o', '*', 'P', 'D'][source]
colors = ['g', 'g', 'r', 'r', 'b'][source]
linewidth = 0.5[source]
linecolor = 'black'[source]
model_name[source]
solved = False[source]
fall_back_fit = False[source]
label[source]
screws[source]
plot_screw_pos[source]
plot_screw_size[source]
samples = [][source]
margins = [][source]
corr = None[source]
model[source]
add_sample(sample)[source]

Add a point to the panel’s list of points to be fitted :param sample: tuple/list containing point description [xcoor,ycoor,xidx,yidx,value]

add_margin(sample)[source]

Add a point to the panel’s list of points to be corrected, but not fitted :param sample: tuple/list containing point description [xcoor,ycoor,xidx,yidx,value]

solve()[source]
get_corrections()[source]
export_screws(unit='mm')[source]

Export screw adjustments to a numpy array in unit :param unit: Unit for the screw adjustments

Returns:

Numpy array with screw adjustments

plot_label(ax, rotate=True)[source]

Plots panel label to ax :param ax: matplotlib axes instance :param rotate: Rotate label for better display

plot_screws(ax)[source]

Plots panel screws to ax :param ax: matplotlib axes instance

plot_corrections(ax, cmap, corrections, threshold, vmin, vmax)[source]

Plot screw corrections onto an axis :param ax: axis for plot :param cmap: Colormap of the corrections to be applied to each screw :param corrections: the screw corrections :param threshold: Threshold below which data is considered negligable :param vmin: bottom of the colormap :param vmax: top of the colormap