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

Add button to remove fit curves #9

Open
hschovanec-usgs opened this issue Jul 10, 2017 · 1 comment
Open

Add button to remove fit curves #9

hschovanec-usgs opened this issue Jul 10, 2017 · 1 comment

Comments

@hschovanec-usgs
Copy link
Member

Once fit curves are added, there is no option to remove them. Fit curves can be removed using Restore data on the Stream page, but all changes (flags) are lost unless saved in a file.
Fit method: https://github.com/usgs/magpy/blob/master/magpy/gui/magpy_gui.py#L2173-L2216
Fit dialog box class: https://github.com/usgs/magpy/blob/master/magpy/gui/dialogclasses.py#L1805-L1873

OS: Sierra
MagPy: v0.3.91

hschovanec-usgs added a commit to hschovanec-usgs/magpy that referenced this issue Jul 11, 2017
Previously fit functions could not be removed without restoring
the original data, which removed all changes to the data.
The 'none' option sets the function variable to None, which
plots a stream without a function. Addresses issue: usgs#9.
@hschovanec-usgs
Copy link
Member Author

Adding an option in the fit dialog box's function combo box rather than a button may be a simpler fix.

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

No branches or pull requests

1 participant