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

[develop] Fix retrieve data. #810

Merged
Merged
Show file tree
Hide file tree
Changes from 2 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
2 changes: 1 addition & 1 deletion tests/WE2E/run_WE2E_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from textwrap import dedent
from datetime import datetime

sys.path.append("../../ush")
sys.path.insert(0, "../../ush")
christinaholtNOAA marked this conversation as resolved.
Show resolved Hide resolved

from generate_FV3LAM_wflow import generate_FV3LAM_wflow
from python_utils import (
Expand Down
10 changes: 5 additions & 5 deletions ush/retrieve_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -609,11 +609,11 @@ def hpss_requested_files(cla, file_names, store_specs, members=-1, ens_group=-1)
# something has gone wrong.
unavailable = set.union(*unavailable.values())

# Break loop if unexpected files were found or if files were found
# A successful file found does not equal the expected file list and
# returns an empty set function.
if not expected == unavailable:
return unavailable - expected
# Break loop if unexpected files were found or if files were found
# A successful file found does not equal the expected file list and
# returns an empty set function.
if not expected == unavailable:
return unavailable - expected

# If this loop has completed successfully without returning early, then all files have been found
return {}
Expand Down