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

Better Extractor.Usage matching. #9

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Better Extractor.Usage matching. #9

wants to merge 3 commits into from

Conversation

PeterKraus
Copy link
Contributor

This PR adds a bit more logic to the matching of Usage with the patterns requested by the user.

A new function find_matching_usage() takes a list[dict] of usages from an Extractor and finds one that best matches the filetype and optional parameters (execution method, extraction scope).

We probably want to consider datatractor/schema#8 first before merging this one.

@PeterKraus
Copy link
Contributor Author

I have no idea why the galvani tests are broken...

@PeterKraus
Copy link
Contributor Author

OK, the galvani problems are because the Extractor invocation is incorrect. See datatractor/yard#25.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant