Skip to content

Commit 4623c1f

Browse files
authored
Merge pull request #3411 from matteobachetti/patch-1
2 parents a682f92 + ea9abd4 commit 4623c1f

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

CHANGES.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ heasarc
6767
- Heasarc.locate_data returns empty rows with an error in the error_message column if there are
6868
no data associated with that row rather than filtering it out. [#3275]
6969
- Heasarc.locate_data changed to use POST request instead of GET to accomodate large requests. [#3356]
70+
- Preserve size of mask when all values are False in HeasarcClass.locate_data [#3411]
7071

7172
imcce
7273
^^^^^
@@ -2292,4 +2293,4 @@ Infrastructure, Utility and Other Changes and Additions
22922293
0.1 (2013-09-19)
22932294
================
22942295

2295-
- Initial release. Includes features!
2296+
- Initial release. Includes features!

astroquery/heasarc/core.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,8 @@ def locate_data(self, query_result=None, catalog_name=None):
533533
# that report errors (usually means there are no data products)
534534
dl_result = dl_result[np.ma.mask_or(
535535
dl_result['content_type'] == 'directory',
536-
dl_result['error_message'] != ''
536+
dl_result['error_message'] != '',
537+
shrink=False
537538
)]
538539
dl_result = dl_result[['ID', 'access_url', 'content_length', 'error_message']]
539540

0 commit comments

Comments
 (0)