Giter Club home page Giter Club logo

Comments (6)

joenano avatar joenano commented on June 22, 2024

did you use git clone or release? what is the last race recorded before the error?

from rpscrape.

stevemoulton avatar stevemoulton commented on June 22, 2024

git clone

last record in the last race -

11 Apr 2017,Exeter,2:50,City Of Exeter Challenge Cup Handicap Hurdle,0-130, 4yo+,17.0,3400,Good,F,,,Shantou Rock,EvensF,2.00,5,12-2,170,t,,Harry Skelton,Dan Skelton,132,,140,,Shantou,Cool Cool,Anabaa,Led - shaken up when hanging left after 3 out - 3 1/2 lengths up and looking in command when fell last(op 6/5)

from rpscrape.

joenano avatar joenano commented on June 22, 2024

Its the "EvensF" causing it, fixed.

from rpscrape.

stevemoulton avatar stevemoulton commented on June 22, 2024

pulled latest and tested. Ran into the following -

[rpscrape]> 14 2010-2019 jumps
Scraping jumps results from Exeter in 2010-2019...
No jumps race data for Exeter in 2019.
Traceback (most recent call last):
File "./rpscrape.py", line 578, in
main()
File "./rpscrape.py", line 574, in main
parse_args([arg.strip() for arg in args.split()])
File "./rpscrape.py", line 555, in parse_args
scrape_races(races, course_name(scrape_target), args[1], code)
File "./rpscrape.py", line 486, in scrape_races
dec = fraction_to_decimal([sp.strip('F').strip('J').strip('C').strip() for sp in sps])
File "./rpscrape.py", line 157, in fraction_to_decimal
decimal.append('{0:.2f}'.format(float(fraction.split('/')[0]) / float(fraction.split('/')[1]) + 1.00))
ValueError: could not convert string to float:

last record seems to be the same -

2017-04-11,Exeter,2:50,City Of Exeter Challenge Cup Handicap Hurdle,0-130, 4yo+,17.0,3400,Good,F,,,Shantou Rock,EvensF,2.00,5,12-2,170,t,,Harry Skelton,Dan Skelton,132,,140,,Shantou (USA),Cool Cool (FR),Anabaa,Led - shaken up when hanging left after 3 out - 3 1/2 lengths up and looking in command when fell last(op 6/5)

from rpscrape.

joenano avatar joenano commented on June 22, 2024

Apologies, the issue is the 5:40 Exeter 18/04/2017. The race was a walkover so no SP, trying to convert empty string to float.

Fixed.

from rpscrape.

stevemoulton avatar stevemoulton commented on June 22, 2024

good find! Just tried again and it completed without a problem, thanks!

from rpscrape.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.