lcc.stars_processing.systematic_search package

Submodules

lcc.stars_processing.systematic_search.stars_searcher module

class lcc.stars_processing.systematic_search.stars_searcher.StarsSearcher(stars_filters, save_path='.', stat_file_path=None, save_lim=None, unfound_lim=None, obth_method=None, save_coords=None)[source]

The class manages systematic searching in databases. It also can be used as base class for other star searchers.

Attributes

stars_filter (FilteringManager object) Filter which is prepared filter star objects
save_path (str) Path from “run” module to the folder where found light curves will be saved
stat_file_path (str) Status file name
save_lim (int) Number of searched objects after which status file is saved
obth_method (str) Name of connector class
save_coords (bool) Save params space coordinates of inspected stars
status (pandas.DataFrame) Status table about results of queries

Methods

DEF_save_lim = 50
DEF_unfound_lim = 150
failProcedure(query, err='')[source]

What to do if a fail occurs

Parameters:

query : optional

Query informations

err : str

Error message

Returns:

None

filterStar(star, *args, **kwargs)[source]

This method filter given star. In case of match method “matchOccured” will be performed

Parameters:

stars : Star instance

Star to filter

Returns:

bool

If star passed thru filtering

matchOccured(star, *args, **kwargs)[source]

What to do with star which passed thru filtering

Parameters:

star : Star instance

Star object which will be saved as fits

Returns:

None

queryStars(queries)[source]

Query db according to list of queries. Stars passed thru filter are managed by matchOccured method.

Parameters:

queries : list, iterable

List of dictionaries of queries for certain db

Returns:

None

statusFile(query, status, delimiter='\t')[source]

This method generates status file for overall query in certain db. Every queried star will be noted.

Parameters:

query : dict

Query informations

status : dict

Information whether queried star was found, filtered and passed thru filtering

Returns:

None