Module azcam.tools.testers.dark

Classes

class Dark

Dark signal 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)

Acquire dark image sets (1 sec dark, long dark) for a dark current measurement. NumberImages is the number of image sets to take. ExposureTime is the exposure time of dark image in seconds.

def analyze(self)

Analyze an exisiting series zeros and darks for dark current measurement.

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)

Plot analysis results.

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.