GithubHelp home page GithubHelp logo

Comments (4)

yihong0618 avatar yihong0618 commented on July 20, 2024

Because some of your activities does not contain the length.
Cna you use this script in the local env and try again and to see what happens.

python scripts/gen_svg.py --from-db --title "Gary's Running" --type grid --athlete "Gary"  --output assets/grid.svg --use-localtime

from running_page.

yihong0618 avatar yihong0618 commented on July 20, 2024

@zgr0629
If it is still not work I will try to drop the assert and pass the error.

from running_page.

zgr0629 avatar zgr0629 commented on July 20, 2024

Result of script you give:

python3 scripts/gen_svg.py --from-db --title "Gary's Running" --type grid --athlete "Gary"  --output assets/grid.svg --use-localtime
179
179
Creating poster of type grid with 160 tracks and storing it in file assets/grid.svg...

Result of script in github action run:

python3 scripts/gen_svg.py --from-db --title "Gary's Running" --type github --athlete "Gary" --special-distance 10 --special-distance2 20 --special-color yellow --special-color2 red --output assets/github.svg --use-localtime --min-distance 0.5
179
179
Creating poster of type github with 165 tracks and storing it in file assets/github.svg...

Both command can generate correct svg file on my machine.(Python 3.7.9)
Do you need any further information?

from running_page.

yihong0618 avatar yihong0618 commented on July 20, 2024

Cool @zgr0629 glad to here you got correct svg file.
I think you can change the length --special-distance 10 --special-distance2 20 --special-color yellow --special-color2 red --output assets/github.svg --use-localtime --min-distance 0.5 to make it color that not caused the problem.
No future info need~

from running_page.

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.