Skip to content

Commit acc5ecc

Browse files
Merge pull request #191 from StingraySoftware/update_stingray_reqs
Update stingray requirements
2 parents 0a6a265 + bd266ce commit acc5ecc

4 files changed

Lines changed: 5 additions & 17 deletions

File tree

hendrics/efsearch.py

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
from astropy import log
2727
from astropy.logger import AstropyUserWarning
2828
from astropy.table import Table, vstack
29-
from astropy.utils.introspection import minversion
3029

3130
from .base import (
3231
HENDRICS_STAR_VALUE,
@@ -56,7 +55,6 @@
5655
)
5756

5857
try:
59-
import matplotlib as mpl
6058
import matplotlib.pyplot as plt
6159

6260
HAS_MPL = True
@@ -157,16 +155,8 @@ def find_nearest_contour(cs, x, y, indices=None, pixel=True):
157155
if indices is not None: # pragma: no cover
158156
warnings.warn("Since Matplotlib 3.8, indices are not usable anymore. Ignoring.")
159157

160-
MATPLOTLIB_LT_3_8 = not minversion(mpl, "3.8.dev")
161-
if MATPLOTLIB_LT_3_8:
162-
paths_list = []
163-
trans_list = []
164-
for con in cs.collections:
165-
trans_list.append(con.get_transform())
166-
paths_list.append(con.get_paths())
167-
else:
168-
paths_list = [cs.get_paths()]
169-
trans_list = [cs.get_transforms()]
158+
paths_list = [cs.get_paths()]
159+
trans_list = [cs.get_transforms()]
170160

171161
d2min = np.inf
172162
conmin = None

pyproject.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ dependencies = [
3737
"numpy>=1.17",
3838
"astropy>=4.0",
3939
"scipy>=1.1.0",
40-
"matplotlib>=3.0,!=3.4.00,!=3.8.0",
41-
"stingray>=2.2.3",
40+
"matplotlib>=3.8.0",
41+
"stingray>=2.3.2",
4242
"tqdm",
4343
"pyyaml",
4444
"pyparsing<3.2.2; python_version<'3.10'",
@@ -209,7 +209,6 @@ filterwarnings = [
209209
"ignore:SIMON says. Number of segments used in averaging:UserWarning",
210210
"ignore:.*deprecated alias for.*:DeprecationWarning",
211211
"ignore:.*namespace is deprecated.*:DeprecationWarning",
212-
"ignore:.*Matplotlib 3.8",
213212
]
214213

215214
[tool.towncrier]

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ numpy
22
scipy
33
astropy
44
matplotlib
5-
stingray >= 1.1
5+
stingray >= 2.3.2
66
sphinx-astropy

tox.ini

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ deps =
5050
astropy5: astropy>=5.0.0,<6.0.0
5151

5252
oldestdeps: numpy<1.25
53-
oldestdeps: matplotlib<3.8
5453
devdeps: numpy>=0.0.dev
5554
devdeps: scipy>=0.0.dev
5655
devdeps: matplotlib>=0.0.dev

0 commit comments

Comments
 (0)