Skip to content

Commit

Permalink
fixing another radec problem
Browse files Browse the repository at this point in the history
  • Loading branch information
MickaelRigault committed Mar 21, 2023
1 parent a81fd95 commit a76ff09
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ztfquery/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -893,6 +893,9 @@ def download_url(
overwrite_ = [overwrite] * len(to_download_urls)
wait_ = [wait] * len(to_download_urls)
cutouts_ = [cutouts] * len(to_download_urls)
if radec is None:
radec = [None,None]

ra_ = [radec[0]] * len(to_download_urls)
dec_ = [radec[1]] * len(to_download_urls)
cutout_size_ = [cutout_size] * len(to_download_urls)
Expand Down
1 change: 1 addition & 0 deletions ztfquery/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -621,6 +621,7 @@ def wget_data(self, indexes=None, use_dask=False, cutout=None, auth=None, **kwar
data = []
for url_ in paths:
if use_dask:
import dask
data = dask.delayed(io.download_fitsdata)(url_, cookies=cookies,
**kwargs)
else:
Expand Down

0 comments on commit a76ff09

Please sign in to comment.