Skip to content

Commit 9726841

Browse files
committed
pep8 fixes. The bracket closures DO match the indentation, though.
pep8 lies sometimes.
1 parent 17512a5 commit 9726841

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

astroquery/higal/core.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ class HiGalClass(BaseQuery):
3737
URL = conf.server + "HiGALSearch.jsp"
3838
TIMEOUT = conf.timeout
3939
CATALOG_URL = conf.server + "MMCAjaxFunction"
40-
#https://tools.ssdc.asi.it/MMCAjaxFunction?
41-
#&mission=Hi-GAL&action=getMMCCatalogData&catalogId=4048&radius=10&ra=281.85238759&dec=-1.93488693&_=1546540568988
40+
# https://tools.ssdc.asi.it/MMCAjaxFunction?
41+
# &mission=Hi-GAL&action=getMMCCatalogData&catalogId=4048&radius=10&ra=281.85238759&dec=-1.93488693&_=1546540568988
4242
HIGAL_CATALOGS = {'blue': 4047,
4343
'red': 4051,
4444
'psw': 4050,
@@ -121,15 +121,14 @@ def _args_to_payload(self, coords=None, name=None, radius=10*u.arcmin,
121121
cookie.path,
122122
cookie.name)
123123

124-
125124
if name is not None:
126125
coords = coordinates.SkyCoord.from_name(name)
127126

128127
if catalog_query:
129128
request_payload = {
130-
'mission':'Hi-GAL',
129+
'mission': 'Hi-GAL',
131130
'action': 'getMMCCatalogData',
132-
'catalogId': catalog_id, #[4048-4051
131+
'catalogId': catalog_id, #[4048-4051
133132
"radius": "{0}".format(radius.to(u.arcmin).value),
134133
"ra": coords.fk5.ra.value,
135134
"dec": coords.fk5.dec.value,
@@ -142,7 +141,7 @@ def _args_to_payload(self, coords=None, name=None, radius=10*u.arcmin,
142141
coords.fk5.dec.value),
143142
"RA": coords.fk5.ra.value,
144143
"DEC": coords.fk5.dec.value,
145-
"coordsType": "RADEC", # or "LB"
144+
"coordsType": "RADEC", # or "LB"
146145
"NameResolverLOCAL": "LOCAL",
147146
"radius": "arcmin",
148147
"size": "",

astroquery/higal/tests/test_higal_remote.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
from ..core import HiGal
1010

11+
1112
@remote_data
1213
class TestTemplateClass:
1314
def test_basic_query(self):

0 commit comments

Comments
 (0)