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

[ENH] Preprocess image widget #7

Merged
merged 6 commits into from
Sep 19, 2024

Conversation

markotoplak
Copy link
Contributor

@markotoplak markotoplak commented Sep 16, 2024

This adds Preprocess Image widgets, which is functionally the same as Preprocess Spectra, but has Images for previews.

This addition is very incomplete, but the architecture for adding individual preprocessors is there. I made a small example preprocessor and editor.

Known issues:

  • To integrate ImagePlot in the easiest way I proceeded as in HyperSpectra, which uses context settings. This is surely the wrong way. If now auser switches the data set to a one that has different column names, preprocessors are going to be forgotten. Because the actual preprocessing is more important than the previews, the settings here should not be context settings, or should be at least made optional.
  • Saving settings does not work, but I did not even fix it because of the issue above.

This partially implements #8. It is in a state that allows preprocessor development and testing.

I'll fix the above issues some other time.

Using this requires the master branch of Spectroscopy (and this is why tests fail).

The biggest problem is that settings for image previews are still
context settings, and that is a problem because the matching them
precisely should not be required.

Now if user switches the data set to a one that has different column
names, preprocessors are going to be forgotten. Because the actual
preprocessing is more important than the previews, the settings here
should not be context settings, or should be at least made optional.
@markotoplak markotoplak marked this pull request as ready for review September 19, 2024 12:25
@markotoplak markotoplak merged commit d8646f2 into Quasars:master Sep 19, 2024
1 of 13 checks passed
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.

1 participant