Skip to content

Defocus does not compute other profiles when show selected wave front is checked #254

@githubdoe

Description

@githubdoe

Select several wave fronts and enable show all selected wave fronts. Then press the defocus button on the wave front list. All the wave fronts will be displayed with just the data from the first.

The bug can be corrected in profile plot.

            if (m_defocus_mode){
                defocus = (m_defocusValue)* (-1. + 2. * rad * rad);
                points << QPointF(radx,(units * (wf->workData((int)dy,(int)dx) + defocus ) *
                                        wf->lambda/outputLambda)  +offset * units);

the old code had wf->workData replaced by m_defocus_wavefront.

The change seems to work. I don't remember why I created the m_defocus_wavefront variable and the code to set it.
Perhaps it is necessary then this fix will not be right. At present it seems to do exactly what I want.

Once more I have forgotten how to update my code to the current master. I have made several other changes over the last few months but I no longer know how to compare that to the master as well.

I'm not anxious to relearn how to do either since I'm busy with other projects like the one that found this bug. Working on my 16 F3 mirror.

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