Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2103 copy parameters from corfunc gives wrong values #2210

Merged

Conversation

lucas-wilkins
Copy link
Contributor

The highlight of this pull request is that copy parameters from corfunc no longer gives "wrong" values.

I have disabled copy and paste for any perspectives that don't support it, this has required refactoring the copy and paste functionality in fitting. I have also done some tidying up of FittingUtilities but there is still plenty to do there.

As Corfunc never did, or attempted to support copy/paste, having enabled copy buttons was an oversight.

I'm not implementing anything new in this PR. For a proper implementation I will require a clear specification of what the right values should be. I'm not sure that there is a use case for copying and pasting everything like there is in fitting (note that individual fields can be copy and pasted). This enhancement should be a new issue / discussion.

@lucas-wilkins lucas-wilkins linked an issue Sep 16, 2022 that may be closed by this pull request
Copy link
Member

@rozyczko rozyczko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good to go.
A few stylistic comments.

src/sas/qtgui/Perspectives/Fitting/FittingWidget.py Outdated Show resolved Hide resolved
src/sas/qtgui/MainWindow/GuiManager.py Show resolved Hide resolved
src/sas/qtgui/MainWindow/GuiManager.py Show resolved Hide resolved
@lucas-wilkins lucas-wilkins merged commit ee4bd64 into main Sep 26, 2022
@krzywon krzywon deleted the 2103-copy-parameters-from-corfunc-gives-wrong-values branch September 29, 2022 21:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Copy parameters from corfunc gives wrong values
2 participants