madgui.online.offcal module

Defines a widget that can be used to estimate monitor offsets from online measurements (flawed approach).

Classes

ResultItem(name, x, y)

OffsetCalibrationWidget(parent, monitors)

Functions

fit_monitor_offsets(*records)

class madgui.online.offcal.OffsetCalibrationWidget(parent, monitors)[source]

Bases: PyQt5.QtWidgets.QWidget

Methods

apply()

cancel()

change_output_file()

closeEvent(self, QCloseEvent)

finish()

get_optics()

get_quads()

get_result_row(i, r)

is_optics_valid()

load_optics()

log(text, *args, **kwargs)

read_focus()

reset()

restore()

round(value)

save_optics()

set_filename(filename)

start()

stop()

update_filename()

update_results()

update_ui()

Attributes

extension

str(object=’’) -> str

filename_filters

list() -> new empty list

progress

int(x=0) -> integer

running

bool(x) -> bool

totalops

int(x=0) -> integer

ui_file

str(object=’’) -> str

apply()[source]
cancel()[source]
change_output_file()[source]
closeEvent(self, QCloseEvent)[source]
extension = '.calibration.yml'
filename_filters = [('YAML files', '*.yml', '*.yaml'), ('All files', '*')]
finish()[source]
folder = None
get_optics()[source]
get_quads()[source]
get_result_row(i, r)[source]
is_optics_valid()[source]
load_optics()[source]
log(text, *args, **kwargs)[source]
progress = 0
read_focus()[source]
reset()[source]
restore()[source]
round(value)[source]
running = False
save_optics()[source]
set_filename(filename)[source]
start()[source]
stop()[source]
totalops = 100
ui_file = 'offcal.ui'
update_filename()[source]
update_results()[source]
update_ui()[source]
class madgui.online.offcal.ResultItem(name, x, y)

Bases: tuple

Attributes

name

Alias for field number 0

x

Alias for field number 1

y

Alias for field number 2

property name

Alias for field number 0

property x

Alias for field number 1

property y

Alias for field number 2

madgui.online.offcal.fit_monitor_offsets(*records)[source]