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

Add option to silence logger for MAST enable_cloud_dataset() #1536

Merged
merged 1 commit into from
Aug 19, 2019

Conversation

pllim
Copy link
Member

@pllim pllim commented Aug 18, 2019

Would be nice if I can silence this without affecting the logger behavior as a whole. I don't need it to remind me about S3 pricing every time I run the function.

🙏 @ceb8 🙏

@pep8speaks
Copy link

pep8speaks commented Aug 18, 2019

Hello @pllim! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻

Comment last updated at 2019-08-19 18:38:22 UTC

@astropy-bot astropy-bot bot added the mast label Aug 18, 2019
@codecov
Copy link

codecov bot commented Aug 18, 2019

Codecov Report

Merging #1536 into master will decrease coverage by <.01%.
The diff coverage is 16.66%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1536      +/-   ##
==========================================
- Coverage   62.42%   62.42%   -0.01%     
==========================================
  Files         176      176              
  Lines       14634    14635       +1     
==========================================
  Hits         9136     9136              
- Misses       5498     5499       +1
Impacted Files Coverage Δ
astroquery/mast/core.py 73.12% <16.66%> (-0.09%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1284823...2d7b34c. Read the comment docs.

Copy link
Member

@ceb8 ceb8 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is a good idea. 👍

@@ -1561,6 +1561,8 @@ def enable_cloud_dataset(self, provider="AWS", profile=None):
though at the moment this argument is ignored.
profile : str
Profile to use to identify yourself to the cloud provider (usually in ~/.aws/config).
verbose : bool
Logger to display extra info and warning.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add "Default True."

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@bsipocz bsipocz added this to the v0.3.10 milestone Aug 19, 2019
@bsipocz
Copy link
Member

bsipocz commented Aug 19, 2019

@pllim - I'm on the verge whether this needs a changelog or not, leave it up to you, and will merge once CI is happy.

@pllim
Copy link
Member Author

pllim commented Aug 19, 2019

I cancelled the CI because I plan to add a change log, squash, and then let it run.

Address review comment by @ceb8 and add change log.
@bsipocz bsipocz merged commit 5517b42 into astropy:master Aug 19, 2019
@pllim pllim deleted the patch-1 branch August 19, 2019 20:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants