Skip to content

Commit

Permalink
Use plain old property instead of cached_property
Browse files Browse the repository at this point in the history
  • Loading branch information
rosteen committed Apr 24, 2024
1 parent 2dfc46c commit 63c5cb0
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 5 deletions.
1 change: 0 additions & 1 deletion docs/spectral_regions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,6 @@ Reference/API

:skip: test
:skip: QTable
:skip: cached_property
:skip: Spectrum1D
:skip: SpectrumCollection
:skip: SpectralAxis
1 change: 0 additions & 1 deletion docs/spectrum1d.rst
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,5 @@ Reference/API

:skip: test
:skip: QTable
:skip: cached_property
:skip: SpectrumCollection
:skip: SpectralRegion
1 change: 0 additions & 1 deletion docs/spectrum_collection.rst
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,6 @@ Reference/API

:skip: test
:skip: QTable
:skip: cached_property
:skip: Spectrum1D
:skip: SpectralRegion
:skip: SpectralAxis
3 changes: 1 addition & 2 deletions specutils/spectra/spectral_region.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import itertools
from functools import cached_property
import sys

from astropy.table import QTable
Expand Down Expand Up @@ -376,7 +375,7 @@ def invert(self, lower_bound, upper_bound):

return SpectralRegion([(x, y) for x, y in zip(newlist[0::2], newlist[1::2])])

@cached_property
@property
def _table(self):
# Return the information defining the spectral region as an astropy QTable
lower_bounds = []
Expand Down

0 comments on commit 63c5cb0

Please sign in to comment.