lcc.stars_processing.descriptors package

Submodules

lcc.stars_processing.descriptors.abbe_value_descr module

class lcc.stars_processing.descriptors.abbe_value_descr.AbbeValueDescr(bins=None)[source]

Bases: lcc.stars_processing.utilities.base_descriptor.BaseDescriptor

Filter implementation which denies stars with lower value then a limit of Abbe value

Attributes

bins (int) Dimension of reduced light curve from which Abbe value is calculated

Methods

LABEL = 'Abbe value'
getSpaceCoords(stars)[source]

Get list of Abbe values

Parameters:

stars : list of Star objects

Stars with color magnitudes in their ‘more’ attribute

Returns:

list

List of list of floats

lcc.stars_processing.descriptors.color_index_descr module

class lcc.stars_processing.descriptors.color_index_descr.ColorIndexDescr(colors=[('b_mag', 'v_mag'), ('v_mag', 'i_mag')], pass_not_found=False, raise_if_not=False, without_notfound=True, *args, **kwargs)[source]

Bases: lcc.stars_processing.utilities.base_descriptor.BaseDescriptor

Filter star according their color indexes

Attributes

colors (list of strings) List of magnitudes which will be used. They are keys to color indexes in star’s object attribute ‘more’, where can be stored anything
pass_not_found (bool) If False stars without color index will be denied
raise_if_not (bool) If True it throws exception whenever a star has no color index
without_notfound (bool) If False coordinates of stars which have no color indexes will be returned as well, but with None instead of coordinates (list of values)
labels (list of strings) Labels of color-diagram axis

Methods

getSpaceCoords(stars)[source]

Get list of desired colors

Parameters:

stars : list of Star objects

Stars with color magnitudes in their ‘more’ attribute

Returns:

List of list of floats

lcc.stars_processing.descriptors.curve_density_descr module

class lcc.stars_processing.descriptors.curve_density_descr.CurveDensityDescr[source]

Bases: lcc.stars_processing.utilities.base_descriptor.BaseDescriptor

This filter throw out stars with low density light curves. It means light curves with huge non observing gaps or light curves with low amount of observations

Methods

LABEL = 'Curve density [points per time lag]'
getSpaceCoords(stars)[source]

Get list of curve densities

Parameters:

stars : list of Star objects

Stars with color magnitudes in their ‘more’ attribute

Returns:

list

Densities of points per time lag

lcc.stars_processing.descriptors.curve_descr module

class lcc.stars_processing.descriptors.curve_descr.CurveDescr(bins=None)[source]

Bases: lcc.stars_processing.utilities.base_descriptor.BaseDescriptor

Attributes

bins (int) Dimension of reduced light curve

Methods

LABEL = 'Light curve points'
getSpaceCoords(stars)[source]

Get reduced light curve as coordinates

Parameters:

stars : list of Star objects

Stars with color magnitudes in their ‘more’ attribute

Returns:

list

List of list of floats

lcc.stars_processing.descriptors.curve_shape_descr module

class lcc.stars_processing.descriptors.curve_shape_descr.CurvesShapeDescr(comp_stars, days_per_bin, alphabet_size, slide=0.25, meth='average')[source]

Bases: lcc.stars_processing.utilities.symbolic_representation.SymbolicRepresentation, lcc.stars_processing.utilities.compare.ComparativeBase, lcc.stars_processing.utilities.base_descriptor.BaseDescriptor

This descriptor which compares light curves of inspected star with the template in symbolic representation

Attributes

comp_stars (list) Template stars
days_per_bin (float) Ratio which decides about length of the word
alphabet_size (int) Range of of used letters
slide (bool) If True, words with different lengths are dynamically compared by sliding shorter word thru longer
meth (str) Method key for calculating distance from comparative objects average : take mean distance in each coordinate as object coordinate closest : take coordinate with closest distance as object coordinate

Methods

AVAIL_METHODS = ['average', 'closest']
LABEL = 'Dissimilarity of the curve from the template'
getWord(star)[source]
Parameters:Star object with light curve
Returns:String representation of light curve
getWords(star1, star2)[source]
Parameters:

star1 : object

Star object with light curve

star2 : object

Star object with light curve

Returns:

list

String representations of light curve

lcc.stars_processing.descriptors.hist_shape_descr module

class lcc.stars_processing.descriptors.hist_shape_descr.HistShapeDescr(comp_stars, bins, alphabet_size, slide=False)[source]

Bases: lcc.stars_processing.utilities.symbolic_representation.SymbolicRepresentation, lcc.stars_processing.utilities.compare.ComparativeBase, lcc.stars_processing.utilities.base_descriptor.BaseDescriptor

This descriptor compares histograms of light curves of inspected star with the template

Attributes

comp_stars (list) Template stars
bins (int) Length of result histogram
alphabet_size (int) Range of of used letters
slide (bool) If True, words with different lengths are dynamically compared by sliding shorter word thru longer
slide (bool) If True, words with different lengths are dynamically compared by sliding shorter word thru longer

Methods

LABEL = 'Dissimilarity of the light curves histogram from the template'
getWord(star)[source]
Parameters:

Star object with light curve

Returns:

str

String representation of light curve’s histogram

lcc.stars_processing.descriptors.position_descriptor module

class lcc.stars_processing.descriptors.position_descriptor.PositionDescriptor[source]

Bases: lcc.stars_processing.utilities.base_descriptor.BaseDescriptor

Describe stars according their position on the sky

Methods

LABEL = ['Right ascension', 'Declination']
getSpaceCoords(stars)[source]

Get list of desired attributes

Parameters:

stars : list of Star objects

Stars with coo attribute

Returns:

list

List of list of floats

lcc.stars_processing.descriptors.property_desc module

class lcc.stars_processing.descriptors.property_desc.PropertyDescr(attribute_names, ifnot=None)[source]

Bases: lcc.stars_processing.utilities.base_descriptor.BaseDescriptor

Descriptor which using star’s attributes

Attributes

attribute_names (iterable, str) Keys of star’s objects more attribute For example: [“pm_ra”, “pm_de”]
ifnot (str, NoneType) Value of coordinates which will be assigned if there is no attribute_name value

Methods

LABEL = "Star's property"
getSpaceCoords(stars)[source]

Get list of desired attributes

Parameters:

stars : list of Star objects

Stars with self.attribute_name keys in their ‘more’ attribute

Returns:

list

List of list of floats

lcc.stars_processing.descriptors.variogram_shape_descr module

class lcc.stars_processing.descriptors.variogram_shape_descr.VariogramShapeDescr(comp_stars, bins, alphabet_size, slide=False, **kwargs)[source]

Bases: lcc.stars_processing.utilities.symbolic_representation.SymbolicRepresentation, lcc.stars_processing.utilities.compare.ComparativeBase, lcc.stars_processing.utilities.base_descriptor.BaseDescriptor

This descriptor compares variograms of light curves of inspected star with the template in symbolic representation.

Attributes

comp_stars (list) Template stars
bins (int) Number of bins
alphabet_size (int) Range of of used letters
slide (bool) If True, words with different lengths are dynamically compared by sliding shorter word thru longer

Methods

LABEL = "Dissimilarity of the light curve's variogram from the template"
getWord(star)[source]
Parameters:

Star object with a light curve

Returns:

str

String representation of light curve’s variogram

lcc.stars_processing.descriptors.variogram_slope_descr module

class lcc.stars_processing.descriptors.variogram_slope_descr.VariogramSlopeDescr(days_per_bin, absolute=False)[source]

Bases: lcc.stars_processing.utilities.base_descriptor.BaseDescriptor

This filter sorting stars according slopes of their variograms

Attributes

days_per_bin (float) Rate between light curve dimension and days
absolute (bool) If True absolute value of slope is taken

Methods

LABEL = "Light curve's variogram slope"
getSpaceCoords(stars)[source]

Get list of desired colors

Parameters:

stars : list of Star objects

Stars with color magnitudes in their ‘more’ attribute

Returns:

list

Variogram slopes

Module contents

There are implementations of filters