Skip to content

Commit

Permalink
Work in progress:
Browse files Browse the repository at this point in the history
- Rename attributes to match GPX XML schema
- Add class attributes `fields` and `mandatory_fields` corresponding to GPX XML schema
- Fix issue #12
  • Loading branch information
FABallemand committed Jul 1, 2024
1 parent 4e5e586 commit 553677d
Show file tree
Hide file tree
Showing 26 changed files with 839 additions and 481 deletions.
2 changes: 1 addition & 1 deletion ezgpx/fit_parser/fit_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def _parse(self):
trkpt.append(WayPoint("trkpt", lat, lon, alt, time))
trkseg = TrackSegment(trkpt=trkpt)
trk = Track(trkseg=[trkseg])
self.gpx.tracks = [trk]
self.gpx.trk = [trk]

def add_properties(self):
self.gpx.creator = "ezGPX"
Expand Down
3 changes: 1 addition & 2 deletions ezgpx/gpx/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
from .gpx import *
from .utils import *
from .gpx import *
Loading

0 comments on commit 553677d

Please sign in to comment.