SourceXtractorPlusPlus 1.0.3
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
sourcextractor.config.measurement_images.ByPattern Class Reference
Inheritance diagram for sourcextractor.config.measurement_images.ByPattern:
Collaboration diagram for sourcextractor.config.measurement_images.ByPattern:

Public Member Functions

 __init__ (self, key, pattern)
 __call__ (self, images)

Private Attributes

 __key = key
 __pattern = pattern

Detailed Description

Callable that can be used to split an ImageGroup by a keyword value (i.e. FILTER), applying a regular
expression and using the first matching group as key.

Parameters
----------
key : str
    FITS header keyword
pattern : str
    Regular expression. The first matching group will be used as grouping key.

See Also
--------
ImageGroup.split

Definition at line 514 of file measurement_images.py.

Constructor & Destructor Documentation

◆ __init__()

sourcextractor.config.measurement_images.ByPattern.__init__ ( self,
key,
pattern )
Constructor.

Definition at line 531 of file measurement_images.py.

Member Function Documentation

◆ __call__()

sourcextractor.config.measurement_images.ByPattern.__call__ ( self,
images )
Parameters
----------
images : list of MeasurementImage
    List of images to group

Returns
-------
list of tuples of str and list of MeasurementImage

Definition at line 538 of file measurement_images.py.

References sourcextractor.config.measurement_images.ByKeyword.__key, __key, and __pattern.

Member Data Documentation

◆ __key

sourcextractor.config.measurement_images.ByPattern.__key = key
private

Definition at line 535 of file measurement_images.py.

Referenced by __call__().

◆ __pattern

sourcextractor.config.measurement_images.ByPattern.__pattern = pattern
private

Definition at line 536 of file measurement_images.py.

Referenced by __call__().


The documentation for this class was generated from the following file: