Skip to content

CustomizableRegion.py throws TypeError in get_wave_base() #11

@pmaxted

Description

@pmaxted

While running "Find line masks" function I was getting a long error message that ends with ...

  File "/Users/pflm/iSpec/ispec/gui/CustomizableRegion.py", line 348, in get_wave_base
    return self.axvspan.get_xy()[0,0]
           ~~~~~~~~~~~~~~~~~~~~~^^^^^
TypeError: tuple indices must be integers or slices, not tuple

The following code starting at line 348 of CustomizableRegion.py seems to fix this

    def get_wave_base(self):
        return self.axvspan.get_x()

    def get_wave_top(self):
        return self.axvspan.get_x()+self.axvspan.get_width()

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