-
Notifications
You must be signed in to change notification settings - Fork 2
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
chore: logging 3 - remove prints from tools directory #177
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some suggested cleanups here.
Co-authored-by: Carlos Paniagua <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One more change here.
Co-authored-by: Carlos Paniagua <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All good!
…at-logger/3-replace-print-logger-tools # Conflicts: # src/icesat2_tracks/ICEsat2_SI_tools/angle_optimizer.py # src/icesat2_tracks/ICEsat2_SI_tools/filter_regrid.py # src/icesat2_tracks/ICEsat2_SI_tools/spectral_estimates.py # src/icesat2_tracks/ICEsat2_SI_tools/spicke_remover.py # src/icesat2waves/tools/iotools.py # src/icesat2waves/tools/sliderule_converter_tools.py
…at-logger/3-replace-print-logger-tools
…at-logger/3-replace-print-logger-tools
…at-logger/3-replace-print-logger-tools
The base branch was changed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See what you think of these.
@@ -328,7 +332,7 @@ def ATL03_download(username, password, dpath, product_directory, sd, file_name): | |||
""" | |||
|
|||
HOST = ["https://n5eil01u.ecs.nsidc.org", "ATLAS", product_directory, sd, file_name] | |||
print("download to:", dpath + "/" + HOST[-1]) | |||
_logger.debug("download to: %s", dpath + "/" + HOST[-1]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fewer characters, same result. Thoughts?
_logger.debug("download to: %s", dpath + "/" + HOST[-1]) | |
_logger.debug("download to: %s", dpath"/"HOST[-1]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wow, that works? It looks like a syntax error to me. I didn't know you could concatenate strings that way. How does Black reformat it? I'm not super keen – I don't think the suggestion makes the syntax any clearer.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe it doesn't work. I guess it only works with literals.
Co-authored-by: Carlos Paniagua <[email protected]>
No description provided.