-
Notifications
You must be signed in to change notification settings - Fork 80
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
Rename load_file_list_of_signatures
to load_pathlist_from_file
#1423
Conversation
Please review @ctb @luizirber |
Codecov Report
@@ Coverage Diff @@
## latest #1423 +/- ##
==========================================
+ Coverage 89.27% 94.49% +5.21%
==========================================
Files 123 96 -27
Lines 18790 15176 -3614
Branches 1447 1447
==========================================
- Hits 16775 14340 -2435
+ Misses 1782 603 -1179
Partials 233 233
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
hi @keyabarve a couple things -
I note that @markjih is also working on this same issue, in #1382, but he didn't link it to the issue so you couldn't know that. That PR is a bit stale now, so I'm fine with you continuing here :). In general, tho, the goal is to try to avoid stepping on each other, which is why good issue/PR linking is so important! |
@@ -181,7 +181,7 @@ def summarize_main(args): | |||
inp_files = args.query | |||
|
|||
if args.query_from_file: | |||
more_files = sourmash_args.load_file_list_of_signatures(args.query_from_file) | |||
more_files = sourmash_args.load_pathlist_from_file(args.query_from_file) |
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.
please create a new issue for testing --query-from-file
for sourmash lca summarize
- thanks!
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.
(because our current tests don't execute this, apparently!)
Will do, thanks! |
Please review. @ctb @luizirber |
hi @keya, the code changes look good. But let's work on improving the pull request title and description ;). First, the title of the PR needs to be something that we can look at later to understand what this PR was about. This is because these remain associated with the project forever. Right now the title is "Rename issue #1369" which isn't very informative - can you describe briefly what you did?, e.g. "rename Second, the body of the PR description at the top needs to reference relevant issues (which it does!) as well as indicating to GitHub which issues this PR will close. In this case I think this closes #1369, in which case you need to put the literal exact words "Fixes #1369" in there; then, when this PR is closed, issue #1369 will be closed automatically. Third, the PR description should be at least somewhat informative. Yes, it's always possible to go read the code diff to figure out what was changed, but it's nice not to have to. So something like "This PR renames function XYZ to function ABC in files 1, 2, and 3." would be sufficient. An example is here, if you'd like to see how I structure my PRs descriptions. You don't have to write a novel like I sometimes do, but in general any relevant information should be written in the PR description Can you take a crack at updating the title and PR description, please? Thanks! |
thanks, @keyabarve, everything but the title is good now. Before merging, could you change the actual title of the PR (currently Regarding adding some unit tests, I think that's best done as a separate PR at this point. Can you create a new issue (like #1427) for that, and then you can choose to take it as a new PR if you like. in terms of actual tests, please see this example for the kind of thing you want to do - create a list of files that's broken in various ways, and then use the actual function |
load_file_list_of_signatures
to load_pathlist_from_file
load_file_list_of_signatures
to load_pathlist_from_file
load_file_list_of_signatures
to load_pathlist_from_file
thank you! |
load_file_list_of_signatures
to load_pathlist_from_file
load_file_list_of_signatures
to load_pathlist_from_file
Fixes #1369
This PR renames the function
load_file_list_of_signatures
toload_pathlist_from_file
in 6 files. These files are:src/sourmash/lca/command_summarize.py
src/sourmash/command_sketch.py
src/sourmash/commands.py
src/sourmash/lca/command_classify.py
src/sourmash/lca/command_index.py
src/sourmash/sourmash_args.py
TODO:
tests/test_sourmash.py
for this function, including empty file list, badly formatted ones, ones with duplicates.Checklist:
make test
Did it pass the tests?make coverage
Is the new code covered?without a major version increment. Changing file formats also requires a
major version number increment.
changes were made?