5.1.1.1.1.1.1.1. recipe_system.adcc.client.qap_specviewer package

5.1.1.1.1.1.1.1.1. Submodules

5.1.1.1.1.1.1.1.2. recipe_system.adcc.client.qap_specviewer.mock_json module

This script is used to develop SpecViewer only. It should not be used for production.

It creates a JSON file from a dictionary to be used in the QAP SpecViewer development.

recipe_system.adcc.client.qap_specviewer.mock_json.create_1d_spectrum(width, n_lines, max_weight)[source]

Generates a 1D NDArray with the sky spectrum.

5.1.1.1.1.1.1.1. Parameters

widthint

Number of array elements.

n_linesint

Number of artificial lines.

max_weightfloat

Maximum weight (or flux, or intensity) of the lines.

5.1.1.1.1.1.1.1. Returns

sky_1d_spectrum : numpy.ndarray

recipe_system.adcc.client.qap_specviewer.mock_json.main()[source]

5.1.1.1.1.1.1.1.3. recipe_system.adcc.client.qap_specviewer.mock_primitive module

Mock plotSpectraForQA primitive.

This module emulates a pipeline that reproduces how the plotSpectraForQA would behave in real time.

In practice, it creates JSON data and send it to the ADCC Server in a timed loop.

class recipe_system.adcc.client.qap_specviewer.mock_primitive.ApertureModel(center, lower, upper, wavelength_units, dispersion, wavelength, intensity, error)[source]

Bases: object

class recipe_system.adcc.client.qap_specviewer.mock_primitive.SpecPackModel(data_label, group_id, filename, is_stack, pixel_scale, program_id, stack_size, apertures)[source]

Bases: object

recipe_system.adcc.client.qap_specviewer.mock_primitive.create_1d_spectrum(width, n_lines, max_weight)[source]

Generates a 1D NDArray that simulates a random spectrum.

5.1.1.1.1.1.1.1. Parameters

widthint

Number of array elements.

n_linesint

Number of artificial lines.

max_weightfloat

Maximum weight (or flux, or intensity) of the lines.

5.1.1.1.1.1.1.1. Returns

sky_1d_spectrum : numpy.ndarray

recipe_system.adcc.client.qap_specviewer.mock_primitive.main()[source]

Main function.

5.1.1.1.1.1.1.1.4. recipe_system.adcc.client.qap_specviewer.mock_qlook module

This script is used to develop SpecViewer only. It should not be used for production.

It starts a local server that returns an artificial JSON file containing data from an imaginary FITS file that can represent a single or a stack frame. It is using to design frontend/backend.

Remember to run it from the same folder where it lives since it relies on relative path. This is a temporary solution.

recipe_system.adcc.client.qap_specviewer.mock_qlook.favicon()
recipe_system.adcc.client.qap_specviewer.mock_qlook.index()
recipe_system.adcc.client.qap_specviewer.mock_qlook.rqsite()
recipe_system.adcc.client.qap_specviewer.mock_qlook.send_css(path)
recipe_system.adcc.client.qap_specviewer.mock_qlook.send_images(path)
recipe_system.adcc.client.qap_specviewer.mock_qlook.send_js(path)
recipe_system.adcc.client.qap_specviewer.mock_qlook.specviewer()