f311.explorer package

Subpackages

Submodules

f311.explorer.util module

Miscellanea routines that depend on other modules and sub-packages.

Rule: only ‘gui/’ modules can import util!!!

f311.explorer.util.cut_spectrum(sp, l0, lf)

Cuts spectrum given a wavelength interval, leaving origina intact

Parameters:
  • sp – Spectrum instance

  • l0 – initial wavelength

  • lf – final wavelength

Returns:

cut spectrum

Return type:

Spectrum

Module contents

Object-oriented framework to handle file types:

  • Base class FilePy to support Python sources as config files

  • FileLiteDB class wraps a SQLite3 database

  • Automatic file type detection

  • Plugin system to support (read/write/visualize) new file types

f311.explorer.get_config()

Returns AAConfigObj object that corresponds to file ~/.MY-PACKAGE-NAME.conf