We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
free variable 'from_start_to_end' referenced before assignment in enclosing scope
GPXpy: 1.4.2 Python: 3.8.3
Issue
I ran the following line:
gpx = gpxpy.parse(self.source_file.open())
and encountered the following issue:
Ideas
The following line seems to have an issue (at least I ran into one):
gpxpy/gpxpy/gpx.py
Line 1112 in e3733bb
The few lines above do not define from_start_to_end when dist is falsy
from_start_to_end
dist
dist = interval[-1].distance_3d(end) if dist: from_start_to_end = distances[-1] + dist
Maybe default to 0 ?
The text was updated successfully, but these errors were encountered:
Here is the failing track, I can open it successfully in gnome-maps track.zip
Sorry, something went wrong.
No branches or pull requests
Issue
I ran the following line:
and encountered the following issue:
Ideas
The following line seems to have an issue (at least I ran into one):
gpxpy/gpxpy/gpx.py
Line 1112 in e3733bb
The few lines above do not define
from_start_to_end
whendist
is falsyMaybe default to 0 ?
The text was updated successfully, but these errors were encountered: