Skip to content

Commit

Permalink
Remove extraneous print statemnts (#183)
Browse files Browse the repository at this point in the history
* fix retries option for hsload

* remove debug print statements
  • Loading branch information
jreadey authored Apr 1, 2024
1 parent 5984802 commit 096252d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion h5pyd/_apps/hsload.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ def main():
"endpoint": cfg["hs_endpoint"],
"bucket": cfg["hs_bucket"],
"mode": mode,
"retries": cfg["retries"],
"retries": int(cfg["retries"]),
}

fout = h5pyd.File(tgt, **kwargs)
Expand Down
2 changes: 0 additions & 2 deletions h5pyd/_apps/hsls.py
Original file line number Diff line number Diff line change
Expand Up @@ -350,9 +350,7 @@ def visitDomains(domain, depth=1):
if len(parts) > depth:
parts = parts[-depth:]
parts = parts[1:]
print("display_name pre:", display_name)
display_name = "/".join(parts)
print("display_name post:", display_name)
num_bytes = ' '
if d.is_folder:
dir_class = "folder"
Expand Down
2 changes: 1 addition & 1 deletion h5pyd/_hl/files.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ def __init__(
# remove the trailing slash on endpoint if it exists
if endpoint.endswith('/'):
endpoint = endpoint.strip('/')

if username is None:
if "H5SERV_USERNAME" in os.environ:
username = os.environ["H5SERV_USERNAME"]
Expand Down

0 comments on commit 096252d

Please sign in to comment.