aosss.gui package

Submodules

aosss.gui.a_WFileSparseCube module

class aosss.gui.a_WFileSparseCube.WFileSparseCube(parent)

Bases: a99.gui.a_WEditor.WEditor

FileSparseCube editor widget.

Parameters:parent=None
crop_clicked()
current_tab_changed_options()
current_tab_changed_vis()
export_ccube_clicked()
header_apply()
header_revert()
on_collect_fieldnames()
on_colors_click(event)
on_colors_setup_edited()
on_header_edited()
on_place_spectrum_edited()
on_spectra_edited()
plot_colors()
plot_spectra()
replot_colors()
setFocus(reason=None)

Sets focus to first field. Note: reason is ignored.

set_flag_header_changed(flag)
timeout_place()

aosss.gui.a_WFileSpectrumList module

class aosss.gui.a_WFileSpectrumList.WFileSpectrumList(parent)

Bases: a99.gui.a_WEditor.WEditor

FileSpectrumList editor widget.

Parameters:parent=None
add_spectrum_clicked()
current_tab_changed_options()
current_tab_changed_vis()
header_apply()
header_revert()
menu_actions
on_collect_fieldnames()
on_colors_setup_edited()
on_header_edited()
on_spectra_edited(flag_changed_header)
setFocus(reason=None)

Sets focus to first field. Note: reason is ignored.

set_flag_header_changed(flag)
update_splist_headers(splist)

Updates headers of a SpectrumList objects using contents of the Headers tab

aosss.gui.a_WSparseCube module

class aosss.gui.a_WSparseCube.WSparseCube(parent)

Bases: aosss.gui.a_WSpectrumCollectionBase.WSpectrumCollectionBase

Editor for SparseCube objects

changed
get_pixel_xy()
on_add_spectra()

aosss.gui.a_WSpectrumCollectionBase module

class aosss.gui.a_WSpectrumCollectionBase.WSpectrumCollectionBase(parent, flag_splist=True)

Bases: a99.gui.a_WEditor.WEditor

Base class for WSpectrumList and WSparseCube

This class implements some operations that are the same for either WSpectrumList and WSparseCube

This class does not implement the visual stuff.

eventFilter(source, event)
get_current_spectrum()

Returns spectrum on which the table cursor (movable with the keyboar arrows) is currently

get_current_spectrum_index()
get_selected_row_indexes()
get_selected_spectra()
get_selected_spectrum_indexes()
on_all_export_csv()
on_all_to_scalar()
on_curr_scale()

Performs a scaling operation on the current spectrum

on_plot_xy()
on_plot_xyz()
on_sel_delete()
on_sel_open_in_new()
on_sel_plot_overlapped()
on_sel_plot_stacked()
on_sel_use_spectrum_block()
on_twSpectra_cellChanged(row, column)

Cell has been changed manually: commit to self.collection

on_twSpectra_customContextMenuRequested(position)

Mounts, shows popupmenu for the tableWidget control, and takes action.

on_twSpectra_itemSelectionChanged()

Updates actions enabled state

row_index_to_spectrum_index(row_index)

Converts table row index within self.collection.spectra

This is necessary because the table may be sorted

section_moved(idx_logical, idx_vis_old, idx_vis_new)
setFocus(reason=None)

Sets focus to first field. Note: reason is ignored.

set_collection(x)
show_header_context_menu(position)
update()

Refreshes the GUI to reflect what is in self.collection

aosss.gui.a_WSpectrumList module

class aosss.gui.a_WSpectrumList.WSpectrumList(parent)

Bases: aosss.gui.a_WSpectrumCollectionBase.WSpectrumCollectionBase

Editor for SpectrumList objects

changed
on_add_spectra()
on_all_group()

aosss.gui.a_XFileSparseCube module

class aosss.gui.a_XFileSparseCube.XFileSparseCube(*args, **kwargs)

Bases: f311.explorer.gui.a_XFileMainWindow.XFileMainWindow

aosss.gui.a_XFileSpectrumList module

class aosss.gui.a_XFileSpectrumList.XFileSpectrumList(*args, **kwargs)

Bases: f311.explorer.gui.a_XFileMainWindow.XFileMainWindow

aosss.gui.a_XGroupSpectra module

class aosss.gui.a_XGroupSpectra.XGroupSpectra(*args)

Bases: aosss.gui.a_XHelpDialog.XHelpDialog

Edit Parameters gb.py a SpectrumList

Relevant attributes (set on close):

self.block: None or GroupBlock instance self.group_by: sequence of

(field names) = (FITS header keys) = (keys in Spectrum.more_headers)
accept()

aosss.gui.a_XHelpDialog module

class aosss.gui.a_XHelpDialog.XHelpDialog(*args)

Bases: a99.gui.a_XLogDialog.XLogDialog

Dialog with two areas: Fields Area and Help Area

  1. The Fields area contains a grid layout and the OK & Cancel buttons
  2. The Help Area contains a combo box and a text area
Relevant attributes:
self.help_data: [(class name without prefix, docstring), …] self.block: None or ToScalar instance, set before closing when one clicks on “OK” self.grid: grid layout (initially empty) self.labelHelpTopics: label with text “Help Topics”, exposed in case you want to change this text self.comboBox: combo box to add the help topics
combobox_changed()

aosss.gui.a_XPlotXY module

class aosss.gui.a_XPlotXY.XPlotXY(collection, *args)

Bases: a99.gui.a_XLogMainWindow.XLogMainWindow

Plots two fields of a SpectrumCollection object in a simple x-y plot

Parameters:collection – SpectrumCollection object
redraw()

aosss.gui.a_XPlotXYZ module

class aosss.gui.a_XPlotXYZ.XPlotXYZ(collection, *args)

Bases: a99.gui.a_XLogMainWindow.XLogMainWindow

Plots two fields of a SpectrumCollection object in a simple x-y plot

Parameters:collection – SpectrumCollection object
redraw()

aosss.gui.a_XScaleSpectrum module

Window to edit a scaling factor

class aosss.gui.a_XScaleSpectrum.XScaleSpectrum(parent=None, file_main=None, file_abonds=None)

Bases: a99.gui.a_XLogDialog.XLogDialog

accept()
band_index()
band_name()
calculated_magnitude()
desired_magnitude()
factor()
flag_force_band_range()
on_sth_changed()
set_band_name(x)
set_flag_force_band_range(x)
set_spectrum(x)
set_system(x)
system()
zero_point()

aosss.gui.a_XToScalar module

class aosss.gui.a_XToScalar.XToScalar(*args)

Bases: aosss.gui.a_XHelpDialog.XHelpDialog

Edit Parameters to apply ToScalar blocks to a Spectrum List

Relevant attributes:
self.block: None or ToScalar instance, set before closing when one clicks on “OK” self.fieldname: string
accept()

aosss.gui.a_XUseSpectrumBlock module

class aosss.gui.a_XUseSpectrumBlock.XUseSpectrumBlock(*args)

Bases: aosss.gui.a_XHelpDialog.XHelpDialog

Edit Parameters to apply a SpectrumBlock to each spectrum in a Spectrum List

Relevant attributes (set on close):
self.block: None or SpectrumBlock instance
accept()

Module contents