Skip to content

Review auto-setting of t_max in glideid.py/_process_tag_data() #5

@ryanjdillon

Description

@ryanjdillon

In section 3.2.1 Determine stroke_frq fluking rate and cut-off frequency the value t_max is not updated automatically with a calculated value. The default value of 2.5 seconds entered in cfg_glide.yml is used for the rolling average.

This could be updated to function similar to Lucia's script, but my doing this appeared to create erroneous values for t_max, so further diagnosing should be done.

        # Store user input cutoff and stroke frequencies
        cfg['cutoff_frq']   = cutoff_frq
        cfg['stroke_frq']   = stroke_frq
        cfg['stroke_ratio'] = stroke_ratio

        # TODO seting to hardcode t-max, not calculate from stroke_frq
        ## Calculate maximum duration of glides from stroke frequency
        #cfg['t_max']  = 1 /cfg['stroke_frq']  # seconds

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions