Skip to content

Commit 0ae5dad

Browse files
committed
Fixing linter, adding changelog
1 parent 0237749 commit 0ae5dad

File tree

2 files changed

+5
-18
lines changed

2 files changed

+5
-18
lines changed

CHANGES.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ alma
3333
- Throws an error when an unsupported ``kwargs`` (or argument) is passed in to a function. [#2475]
3434
- New DataLink API handling. [#2493]
3535
- Fixed bug #2489 in which blank URLs were being sent to the downloader [#2490]
36-
36+
- Removed deprecated broken functions from ``alma.utils``. [#2331]
3737

3838
astrometry.net
3939
^^^^^^^^^^^^^^

astroquery/alma/utils.py

Lines changed: 4 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,11 @@
22
Utilities for making finder charts and overlay images for ALMA proposing
33
"""
44
import string
5-
import os
65

7-
import numpy as np
8-
9-
from astropy import wcs
10-
from astroquery import log
116
from astropy import units as u
12-
from astropy.io import fits
137
from astropy.coordinates import SkyCoord
148
from astroquery.utils.commons import ASTROPY_LT_4_1
159

16-
from astroquery.skyview import SkyView
17-
from astroquery.alma import Alma
18-
19-
2010
__all__ = ['parse_frequency_support', 'footprint_to_reg', 'approximate_primary_beam_sizes']
2111

2212

@@ -67,10 +57,9 @@ def footprint_to_reg(footprint):
6757

6858
reglist = []
6959

70-
meta={'source': 1, 'include': 1,
71-
'fixed': 0, 'text': ''}
72-
visual={'color': 'green', 'dash': '0', 'dashlist': '8 3',
73-
'font': '"helvetica 10 normal roman"', 'width': '1'}
60+
meta = {'source': 1, 'include': 1, 'fixed': 0, 'text': ''}
61+
visual = {'color': 'green', 'dash': '0', 'dashlist': '8 3',
62+
'font': '"helvetica 10 normal roman"', 'width': '1'}
7463

7564
entries = footprint.split()
7665
if entries[0] == 'Circle':
@@ -82,12 +71,10 @@ def footprint_to_reg(footprint):
8271
polygons = [index for index, entry in enumerate(entries) if entry == 'Polygon']
8372

8473
for start, stop in zip(polygons, polygons[1:]+[None]):
85-
#reg = Shape('polygon', [float(x) for x in entries[start+1:stop] if x != 'ICRS'])
8674
ra = [float(x) for x in entries[start+1:stop:2]]*u.deg
8775
dec = [float(x) for x in entries[start+2:stop:2]]*u.deg
8876
vertices = SkyCoord(ra, dec, frame='icrs')
89-
reg = regions.PolygonSkyCoord(vertices=vertices,
90-
meta=meta, visual=visual)
77+
reg = regions.PolygonSkyCoord(vertices=vertices, meta=meta, visual=visual)
9178
reglist.append(reg)
9279

9380
return reglist

0 commit comments

Comments
 (0)