Skip to content

Commit 6b3e01e

Browse files
keflavichbsipocz
authored andcommitted
remove some more redundant code and fix a docstring issue
1 parent 8d34b95 commit 6b3e01e

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

astroquery/wfau/core.py

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,9 @@ def _verify_programme_id(self, pid, query_type='catalog'):
127127
128128
Raises
129129
------
130-
ValueError if the pid is 'all' and the query type is a catalog.
131-
You can query all surveys for images, but not all catalogs.
130+
ValueError
131+
If the pid is 'all' and the query type is a catalog. You can query
132+
all surveys for images, but not all catalogs.
132133
"""
133134
if pid == 'all' and query_type == 'image':
134135
return 'all'
@@ -201,12 +202,6 @@ def get_images(self, coordinates, waveband='all', frame_type='stack',
201202
list : A list of `~astropy.io.fits.HDUList` objects.
202203
"""
203204

204-
if database is None:
205-
database = self.database
206-
207-
if programme_id is None:
208-
programme_id = self.programme_id
209-
210205
readable_objs = self.get_images_async(
211206
coordinates, waveband=waveband, frame_type=frame_type,
212207
image_width=image_width, image_height=image_height,

0 commit comments

Comments
 (0)