Skip to content

Commit

Permalink
weka fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jakep-allenai committed Nov 14, 2024
1 parent 9a1e82f commit 62de9fe
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions pdelfin/s3_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,11 @@ def download_directory(model_choices: List[str], local_dir: str):

# Reorder model_choices to prioritize weka:// links
weka_choices = [path for path in model_choices if path.startswith("weka://")]

# This is so hacky, but if you are on beaker/pluto, don't use weka
if os.environ.get("BEAKER_NODE_HOSTNAME", "").lower().startswith("pluto"):
weka_choices = []

other_choices = [path for path in model_choices if not path.startswith("weka://")]
prioritized_choices = weka_choices + other_choices

Expand Down
2 changes: 1 addition & 1 deletion pdelfin/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
_MINOR = "1"
# On main and in a nightly release the patch should be one ahead of the last
# released build.
_PATCH = "14"
_PATCH = "15"
# This is mainly for nightly builds which have the suffix ".dev$DATE". See
# https://semver.org/#is-v123-a-semantic-version for the semantics.
_SUFFIX = ""
Expand Down

0 comments on commit 62de9fe

Please sign in to comment.