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

Allow input path specification and show progress bar #4

Merged
merged 2 commits into from
Feb 6, 2022

Conversation

hugovk
Copy link
Collaborator

@hugovk hugovk commented Feb 6, 2022

Two things:

  • Instead of inputting a path such as ~/github/strava-tools/activities/, allow using a path specification using glob that can match wildcards such as ~/github/strava-tools/activities/202107*
    • If your activities have been renamed to include dates (for example), this makes it easy to only generate visualisations for a given month or year
  • Add a progress bar using Rich when processing input files

image

Comment on lines +1 to +6
import glob

import fit2gpx
import gpxpy
import os.path
import pandas as pd
from rich.progress import track
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's common to sort imports into groups: stdlib first, third-party second, local last.

I used this tool: https://pycqa.github.io/isort/

python -m pip install -U isort
isort [path or filename]

@marcusvolz marcusvolz merged commit 34099a6 into marcusvolz:main Feb 6, 2022
@hugovk hugovk deleted the inspec branch February 6, 2022 21:00
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.

2 participants