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

get_pomeroy_ratings not pulling some team names properly #9

Closed
steveroks opened this issue Nov 1, 2021 · 5 comments
Closed

get_pomeroy_ratings not pulling some team names properly #9

steveroks opened this issue Nov 1, 2021 · 5 comments

Comments

@steveroks
Copy link

Hello,
When using kpm.get_pomeroy_ratings to get team stats such as Rk, Conf, Record etc, it is not pulling in the teams' full name correctly in some cases. For example, San Diego St. is ranked as 33 and is on row index # 32. However, the name returned via api is simply 'San Diego' instead of 'San Diego St.'

image

image

Another example is Alabama A&M which shows up as just Alabama A

image

Thanks,
Steve

@j-andrews7
Copy link
Owner

j-andrews7 commented Nov 1, 2021 via email

@steveroks
Copy link
Author

Thanks for responding!

I apologize for my n00b-ness but Im not sure how to submit a proper pull request...however I can tell you this

The issue looks to be with the section for parsing out the seed. It looks like the pattern is set to only look for A-Z and only two words which is why teams with 3 strings in their name (like San Diego St.) are getting truncated to just San Diego. Also since its only looking for A-Z, Alabama A&M is getting truncated at Alabama A

image

If you remove this section of code to parse out the seed, everything works as expected. The full team names are returned. I dont think this parsing is even needed at all as that page doesnt include seeds in the team names

image

@j-andrews7
Copy link
Owner

j-andrews7 commented Nov 6, 2021 via email

@j-andrews7
Copy link
Owner

This should be fixed in the latest release.

@jwall5678
Copy link

I believe I am still having the same issue as was happening before, although being on the latest release.

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

No branches or pull requests

3 participants