Skip to content

Incorrect zero check when parsing latitude/longitude/altitude #1991

@smathermather

Description

@smathermather

Via this post,

File: opendm/video/srtparser.py
The following condition compares a string to an integer and therefore always evaluates to True:
lambda v: float(v) if v != 0 else None
Suggested fix:

fv = float(v)
return fv if fv != 0 else None

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions