Core

config.py

Module to handle the calibrator and generator configuration files.

get_file(label, key, system, bp_model, rp_model)[source]

Get the file path corresponding to the given label and key.

Parameters
  • label (str) – Label of the photometric system or functionality (e.g.: ‘Johnson’ or ‘calibrator’).

  • key (str) – Type of file to load (‘zeropoint’, ‘merge’, ‘sampling’).

Returns

Path of a file.

Return type

str

generic_functions.py

Module to hold some functions used by different subpackages.

array_to_symmetric_matrix(size, array)[source]

Convert the input 1D array into a 2D matrix. The array is assumed to store only the unique elements of a symmetric matrix (i.e. all elements above the diagonal plus the diagonal) in column major order. A full 2D matrix is returned symmetric with respect to the diagonal.

Parameters
  • size (int) – number of rows/columns in the output matrix.

  • array (ndarray) – 1D array.

Returns

a full 2D matrix.

Return type

array of arrays

Raises

TypeError – If array is not of type np.ndarray.

nature.py

Module to hold “natural” constants.

satellite.py

Module to hold satellite-related constants.

class Bands(bp, rp)

Bases: tuple

property bp

Alias for field number 0

property rp

Alias for field number 1

class WLRange(low, high)

Bases: tuple

property high

Alias for field number 1

property low

Alias for field number 0