File: Disable-remote-access-to-get-M3-coords.patch

package info (click to toggle)
astropy 7.0.1-3
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 35,328 kB
  • sloc: python: 233,437; ansic: 55,264; javascript: 17,680; lex: 8,621; sh: 3,317; xml: 2,287; makefile: 191
file content (21 lines) | stat: -rw-r--r-- 783 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
From: Ole Streicher <olebole@debian.org>
Date: Fri, 28 Dec 2018 15:10:28 +0100
Subject: Disable remote access to get M33 coords

---
 examples/coordinates/plot_obs-planning.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/examples/coordinates/plot_obs-planning.py b/examples/coordinates/plot_obs-planning.py
index 603e144..1cf74a5 100644
--- a/examples/coordinates/plot_obs-planning.py
+++ b/examples/coordinates/plot_obs-planning.py
@@ -56,7 +56,7 @@ from astropy.time import Time
 #
 # Get the coordinates of M33:
 
-m33 = SkyCoord.from_name("M33")
+m33 = SkyCoord(23.4621 * u.deg, 30.6599417 * u.deg)
 
 ##############################################################################
 # Use `astropy.coordinates.EarthLocation` to provide the location of Bear