hlcc 2.0.0-beta2+pre1
Loading...
Searching...
No Matches
Functions
unit_converter_helper Namespace Reference

Functions

def altaz_unit_widgets_update (list degrees_widgets, list radians_widgets, NumericalUnitsPropertyEnum numerical_unit_type)
 Uses a par of given Alt,Az numerical unit widgets to update all widgets regarding the same Alt,Az functionality The update decision are made by the Property in view.
 
def radec_units_widgets_update (list hmsdms_widgets, list degrees_widgets, list radians_widgets, NumericalUnitsPropertyEnum numerical_unit_type, bool pi_angle_range=False)
 Uses a par of given Ra,Dec numerical unit widgets to update all widgets regarding the same Ra,Dec functionality The update decision are made by the Property in view.
 
def radians_pi_range_convertion (radians_2pi_value)
 
def single_unit_widgets_update (degrees_widget, radians_widget, numerical_unit_type)
 One numerical unit input widget update.
 

Function Documentation

◆ altaz_unit_widgets_update()

def unit_converter_helper.altaz_unit_widgets_update ( list  degrees_widgets,
list  radians_widgets,
NumericalUnitsPropertyEnum   numerical_unit_type 
)

Uses a par of given Alt,Az numerical unit widgets to update all widgets regarding the same Alt,Az functionality The update decision are made by the Property in view.

Parameters

degrees_widgets list List with widgets that are related to degrees representation radians_widgets list List with widgets that are related to radians representation numerical_unit_type NumericalUnitsPropertyEnum Enum that represents the numerical unit type widgets to be displayed

Return

altaz_radians_coordinates list List of Alt/Az Radian coordinates used to store in a specific model

◆ radec_units_widgets_update()

def unit_converter_helper.radec_units_widgets_update ( list  hmsdms_widgets,
list  degrees_widgets,
list  radians_widgets,
NumericalUnitsPropertyEnum  numerical_unit_type,
bool   pi_angle_range = False 
)

Uses a par of given Ra,Dec numerical unit widgets to update all widgets regarding the same Ra,Dec functionality The update decision are made by the Property in view.

In the end returns the radians values to store them inside the correspodent model For example, HMS,DMS Widgets selected will update Degrees and Radians widgets.

Parameters

hmsdms_widgets list List with widgets that are related to HMS/DMS representation degrees_widgets list List with widgets that are related to degrees representation radians_widgets list List with widgets that are related to radians representation numerical_unit_type NumericalUnitsPropertyEnum Enum that represents the numerical unit type widgets to be displayed

Return

radec_radians_coordinates list List of Ra/Dec Radian coordinates used to store in a specific model

◆ radians_pi_range_convertion()

def unit_converter_helper.radians_pi_range_convertion (   radians_2pi_value)

◆ single_unit_widgets_update()

def unit_converter_helper.single_unit_widgets_update (   degrees_widget,
  radians_widget,
  numerical_unit_type 
)

One numerical unit input widget update.

Degree Widget to Radian Widget and vice-versa.

Parameters

degrees_widgets list List with widgets that are related to degrees representation radians_widgets list List with widgets that are related to radians representation numerical_unit_type NumericalUnitsPropertyEnum Enum that represents the numerical unit type widgets to be displayed

Return

radian_coordinate float Radian value from inputted widget value or convertion from other numerical unit