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

Recent Development #435

Merged
merged 41 commits into from
Oct 15, 2021
Merged

Recent Development #435

merged 41 commits into from
Oct 15, 2021

Conversation

jack89roberts
Copy link
Contributor

@jack89roberts jack89roberts commented Oct 4, 2021

Recent Development

This pull request is a staging area for the changes and improvements that will be added to AIrsenal in its next release, which are described below. If you would like to try these changes before release you can reinstall AIrsenal from our develop branch - there are instructions in the readme (but note that there may be bugs or undocumented changes).

New Features

Enhancements

Bug Fixes


When this PR is ready to merge:

  • Before merging: Update the AIrsenal package version in airsenal/__init__.py. If new
    features have been added increment the middle number, e.g. 1.1.1 -> 1.2.0,
    or if bug fixes only change the last number, e.g. 1.1.1 -> 1.1.2.

  • After merging: Create a new release
    tagged with the new version number. The release text should include the changes above.

nbarlowATI and others added 30 commits August 18, 2021 10:22
This commit adds a scraper `scrape_understat.py` that aims to
scrape the goal time and goal scorer for each match from the
'15-'16 season. It also pulls in the substitution information.
This commit clears the docstring of the `parse_match` function to
add information about the exact structure of the goals and subs
data. It also adds the complete datafiles for the seasons 16-17,
17-18, 18-19, 19-20, and 20-21. Also adds beautifulsoup dependency
in the requirement.txt file.
- Added the 5-2-3 formation to the FORMATIONS list
- Removed the ACTIVE_PER_POSITION variable as it's not used anywhere

Resolves: #222
The choices for the `season` CLI argument are now based on the
keys of the `base_url` dictionary. This makes it easier to
add/remove seasons as only one variable needs to be changed.
Now raise KeyError for wrong season value and also raise Error
if no response is received. Furthermore, used `black` formatter to
add strict formatting to the code. This led to splitting a couple
of strings to two lines with f-strings.
This mainly adds the isort changes that happen in the imports of
most of the files.
jack89roberts and others added 11 commits October 14, 2021 22:57
to avoid circular import
rather than using repo secret
I had been using `find` function in finding the rows that corresponded
to a substitution which led just recording one substitution if more
than one substitutions were being made at the same time. Changed the
call to `find_all` and looping over all the rows to now record all the
substitutions instead. As can be seen in the data files, this has led
to the inclusion of several instances where we were missing 1 or even
2 other substitutions.
Add scraper for understat.com (Fixes #430)
update version number ready for merging into `main`.
@nbarlowATI nbarlowATI merged commit 567c9ad into main Oct 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants