Module azcam.tools.testers.linearity

Classes

class Linearity

Linearity acquisition and analysis.

Args

tool_id
name used to reference the tool (controller, display, …)
description
description of this tool

Ancestors

Instance variables

var data_file

Inherited from: Tester.data_file

output data file

var description

Inherited from: Tester.description

descriptive tool name

var enabled

Inherited from: Tester.enabled

1 when tool is enabled

var initialized

Inherited from: Tester.initialized

1 when tool has been initialized

var is_reset

Inherited from: Tester.is_reset

1 when tool has been reset

var report_file

Inherited from: Tester.report_file

output report file

var tool_id

Inherited from: Tester.tool_id

name used to reference the tool ("controller", "display", …)

var verbosity

Inherited from: Tester.verbosity

verbosity for debug, >0 is more verbose

Methods

def acquire(self, NumberExposures='prompt', max_exposure='prompt')

Acquire a series of flats at increasing exposure levels to determine lnearity. Assumes that filename, timing code, and binning are already set as desired. NumberExposures is the number of exposure levels in sequence max_exposure is the maximum exposure time in seconds.

def analyze(self)

Analyze a series of flats which have already been taken for linearity.

def copy_data_files(self, folder='')

Copy data files to proper report folder.

def fit_linearity(self, fit_min=-1, fit_max=-1)

Calculate residuals from linearity data. Creates linearity.txt file.

def initialize(self) ‑> None

Inherited from: Tester.initialize

Initialize the tool.

def make_mdfile(self, md_file, lines=[])

Inherited from: Tester.make_mdfile

Create a markdown file from lines.

def make_rstfile(self, rst_file, lines=[])

Inherited from: Tester.make_rstfile

Create an RST file from lines.

def md2pdf(self, filename, options=[], create_html=False)

Inherited from: Tester.md2pdf

Create a PDF from a markdown file. Filename extension is optional. Optionally also create an html file.

def merge_pdf(self, input_files=[], output_file='combined.pdf')

Inherited from: Tester.merge_pdf

Merge multiple PDF files into one.

def parse_files(self)

Inherited from: Tester.parse_files

Parse image set to create file information dict.

def plot(self, MinPoint=0, MaxPoint=-1, MinSpec=-1, MaxSpec=-1)

Plot linearity and residuals curve(s). Min and Max Points are limits for plot (as point numbers). Min and Max Spec are x-limits to plot specifications ( as point numbers).

def read_datafile(self, filename='default')

Inherited from: Tester.read_datafile

Read data file and set tool as valid.

def report(self)

Write report file.

def reset(self) ‑> None

Inherited from: Tester.reset

Reset the tool.

def rst2pdf(self, filename, options=[])

Inherited from: Tester.rst2pdf

Create a PDF from an RST file. Filename extension is optional. Also create an html file (currently required).

def write_datafile(self)

Inherited from: Tester.write_datafile

Write data file as a json dump …

def write_report(self, report_file, lines=[])

Inherited from: Tester.write_report

Create report file.