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

Feature/improved warnings for incomplete gbasf2 download #102

Merged
merged 2 commits into from
Apr 29, 2021

Conversation

meliache
Copy link
Collaborator

Basically I removed the if verbose and just always print missing/superfluous files if there are some.

I realized that I don't really need the verbose parameter and with the printing of difference implemented by @ArturAkh , it's also not necessary to print the list of all files. And anyway, if I can shorten code without any loss, it's better to do so.

Also I replaced the prints by warnings, though I would like to have this replaced by proper logging in #100 .

Resolves #101

Basically I removed the `if verbose` and just always print missing files if
there are some missing.

I realized that I don't really need the verbose parameter and with the printing
of difference implemented by Arthur, it's also not necessary to print the list
of all files. And anyway, if I can shorten code without any loss, it's better to
do so.

I don't think using many keyword parameters in private code is a good
design pattern anyway, it's not a flag meant for users.
@meliache meliache added enhancement New feature or request gbasf2 Concerns the gbasf2/grid b2luigi wrapper labels Apr 29, 2021
@meliache meliache self-assigned this Apr 29, 2021
@meliache meliache merged commit bd749b5 into main Apr 29, 2021
@meliache meliache deleted the feature/improved-print-for-incomplete-gbasf2-download branch April 29, 2021 18:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request gbasf2 Concerns the gbasf2/grid b2luigi wrapper
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Don't print verbose gbasf2 download log when download successful
1 participant