Beispiel #1
0
class PeaceGaussBroadbandednessRater(base.BaseRater):
    short_name = "peace_bb_gauss"
    long_name = "PEACE Broadbandedness (Gauss)"
    description = "Broadbandedness of the signal. The shape of " \
                    "the profile is determined by fitting a Gaussian."
                    
    version = 1

    rat_cls = peace.PeaceRatingClass()

    def _compute_rating(self, cand):
        """
        """
        peace = cand.get_from_cache('peace')
        return peace['broadbandedness_gauss']
Beispiel #2
0
class PeaceSnrRater(base.BaseRater):
    short_name = "peace_snr"
    long_name = "PEACE SNR"
    description = "A PEACEful version of signal-to-noise ratio. " \
                    "The higher the better."

    version = 1

    rat_cls = peace.PeaceRatingClass()

    def _compute_rating(self, cand):
        """
        """
        peace = cand.get_from_cache('peace')
        return peace['snr']
class PeaceProgCountPersistenceRater(base.BaseRater):
    short_name = "peace_persist_progcount"
    long_name = "PEACE Persistence (Progressive Counting)"
    description = "Persistence of the signal. The shape of " \
                    "the profile is determined by progressively " \
                    "counting the highest peak."

    version = 1

    rat_cls = peace.PeaceRatingClass()

    def _compute_rating(self, cand):
        """
        """
        peace = cand.get_from_cache('peace')
        return peace['persistence_peak']
Beispiel #4
0
class PeaceCompositeScoreRater(base.BaseRater):
    short_name = "peace_composite_score"
    long_name = "Composite PEACE Score"
    description = "A composite score using information from all " \
                    "PEACE ratings. Values are smaller than 0. " \
                    "Usually score > -5 indicates a very good candidate."

    version = 1

    rat_cls = peace.PeaceRatingClass()

    def _compute_rating(self, cand):
        """
        """
        peace = cand.get_from_cache('peace')
        return peace['score_all']
Beispiel #5
0
class PeaceDmSmearRater(base.BaseRater):
    short_name = "peace_dmsmear"
    long_name = "PEACE DM Smearing"
    description = "Pulse width divided by per-channel DM smearing. " \
                    "Width of the pulse profile is determined by " \
                    "progressively counting the highest peak."

    version = 1

    rat_cls = peace.PeaceRatingClass()

    def _compute_rating(self, cand):
        """
        """
        peace = cand.get_from_cache('peace')
        return peace['DMsmearing']
Beispiel #6
0
class PeaceGaussWidthRater(base.BaseRater):
    short_name = "peace_width_gauss"
    long_name = "PEACE Pulse Width (Gauss)"
    description = "Width of the pulse profile as determined by " \
                    "fitting Gaussian components. The value is " \
                    "fractional width of the pulse (between 0 and 1)."
                    
    version = 1

    rat_cls = peace.PeaceRatingClass()

    def _compute_rating(self, cand):
        """
        """
        peace = cand.get_from_cache('peace')
        return peace['pulsewidth_gauss']
class PeaceProgCountWidthRater(base.BaseRater):
    short_name = "peace_width_progcount"
    long_name = "PEACE Pulse Width (Progressive Counting)"
    description = "Width of the pulse profile as determined by " \
                    "progressively counting the highest peak." \
                    "The value is " \
                    "fractional width of the pulse (between 0 and 1)."

    version = 1

    rat_cls = peace.PeaceRatingClass()

    def _compute_rating(self, cand):
        """
        """
        peace = cand.get_from_cache('peace')
        return peace['pulsewidth_progcnt']
class PeaceCompositeGaussScoreRater(base.BaseRater):
    short_name = "peace_composite_guass_score"
    long_name = "Composite PEACE Score (Gauss)"
    description = "A composite score using information from all " \
                    "Gaussian-fit-based PEACE ratings. Values are " \
                    "smaller than 0. Usually score > -5 indicates a " \
                    "very good candidate."

    version = 1

    rat_cls = peace.PeaceRatingClass()

    def _compute_rating(self, cand):
        """
        """
        peace = cand.get_from_cache('peace')
        return peace['score_gauss']