Skip to content

ROI to select fitting range #21

Description

@HanHsuanWu

Describe the functionality you would like to see.

As title, it will be nice to be able to use ROI to select the fitting range of a EELS model. Something like what GMS can do for background subtraction. Would it possible to do it with SpanROI that we have currently?
image

Additional information

This is on the '2.0.dev0' version. It seems like ROI doesn't work with model1D object right now.

s = hs.datasets.two_gaussians()
m = s.create_model()
roi = hs.roi.SpanROI()
m.plot()
sliced_signal = roi.interactive(m, axes=m.axes_manager.signal_axes)

image

image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions