Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Empty return without remote files #238

Merged
merged 2 commits into from
Aug 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ This project adheres to [Semantic Versioning](https://semver.org/).
* Allow graceful failure with no files in jhuapl load functions
* New window needs to be integer for calculate_imf_steadiness
* Fixed a bug where cdas_download may drop the requested end date file
* Fixed a bug where cdas_list_remote_files errored without remote data
* Documentation
* Added example of how to export data for archival
* Updated documentation refs
Expand Down
4 changes: 3 additions & 1 deletion pysatNASA/instruments/methods/cdaweb.py
Original file line number Diff line number Diff line change
Expand Up @@ -981,7 +981,9 @@ def cdas_list_remote_files(tag='', inst_id='', start=None, stop=None,

og_files = cdas.get_original_files(dataset=dataset, start=start, end=stop)

if series_out:
if og_files[1] is None:
file_list = pds.Series(dtype=str) if series_out else []
elif series_out:
name_list = [os.path.basename(f['Name']) for f in og_files[1]]
t_stamp = [pds.Timestamp(f['StartTime'][:10]) for f in og_files[1]]
file_list = pds.Series(data=name_list, index=t_stamp)
Expand Down
Loading