From 6745dc94a9800722742b44a37b3172de27472f2e Mon Sep 17 00:00:00 2001 From: Maximilian Linhoff Date: Tue, 28 Nov 2023 09:22:37 +0100 Subject: [PATCH] Add support for astropy 6.0 --- docs/changes/2475.feature.rst | 1 + environment.yml | 2 +- examples/tutorials/ctapipe_overview.py | 3 +-- examples/tutorials/theta_square.py | 2 +- setup.cfg | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) create mode 100644 docs/changes/2475.feature.rst diff --git a/docs/changes/2475.feature.rst b/docs/changes/2475.feature.rst new file mode 100644 index 00000000000..c8e3231f477 --- /dev/null +++ b/docs/changes/2475.feature.rst @@ -0,0 +1 @@ +Support astropy 6.0. diff --git a/environment.yml b/environment.yml index 7f0f0dadeed..f098cd53c1e 100644 --- a/environment.yml +++ b/environment.yml @@ -5,7 +5,7 @@ channels: dependencies: - python=3.11 - pip - - astropy=5 + - astropy>=5.3,<7 - black - bokeh=2 - nbsphinx diff --git a/examples/tutorials/ctapipe_overview.py b/examples/tutorials/ctapipe_overview.py index e96cea70f45..8d18c735e7e 100644 --- a/examples/tutorials/ctapipe_overview.py +++ b/examples/tutorials/ctapipe_overview.py @@ -18,8 +18,7 @@ import astropy.units as u import matplotlib.pyplot as plt import numpy as np -from astropy.coordinates import AltAz -from astropy.coordinates.angle_utilities import angular_separation +from astropy.coordinates import AltAz, angular_separation from matplotlib.colors import ListedColormap from scipy.sparse.csgraph import connected_components from traitlets.config import Config diff --git a/examples/tutorials/theta_square.py b/examples/tutorials/theta_square.py index b7f9694383e..bcfc8868ab7 100644 --- a/examples/tutorials/theta_square.py +++ b/examples/tutorials/theta_square.py @@ -12,7 +12,7 @@ import matplotlib.pyplot as plt import numpy as np from astropy import units as u -from astropy.coordinates.angle_utilities import angular_separation +from astropy.coordinates import angular_separation from tqdm.auto import tqdm from ctapipe.calib import CameraCalibrator diff --git a/setup.cfg b/setup.cfg index dbd35656b60..0bc5a360532 100644 --- a/setup.cfg +++ b/setup.cfg @@ -24,7 +24,7 @@ packages = find: python_requires = >=3.9 zip_safe = False install_requires= - astropy ~=5.0 + astropy >=5.3,<7.0.0a0 bokeh ~=2.0 docutils eventio >=1.9.1, <2.0.0a0