Skip to content

Commit a087d60

Browse files
author
Joseph Franck
committed
update for fractions in gps accuracy
1 parent 10de33d commit a087d60

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

imgparse/parser.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -606,9 +606,9 @@ def dewarp_flag(self) -> bool:
606606
def gps_accuracy(self) -> tuple[float, float, float]:
607607
"""Get the GPS accuracy values in meters for x, y, and z."""
608608
try:
609-
x_acc = float(self.xmp_data[self.xmp_tags.X_ACCURACY_M])
610-
y_acc = float(self.xmp_data[self.xmp_tags.Y_ACCURACY_M])
611-
z_acc = float(self.xmp_data[self.xmp_tags.Z_ACCURACY_M])
609+
x_acc = eval(self.xmp_data[self.xmp_tags.X_ACCURACY_M])
610+
y_acc = eval(self.xmp_data[self.xmp_tags.Y_ACCURACY_M])
611+
z_acc = eval(self.xmp_data[self.xmp_tags.Z_ACCURACY_M])
612612
return x_acc, y_acc, z_acc
613613
except KeyError:
614614
raise ParsingError(

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "imgparse"
3-
version = "2.0.9"
3+
version = "2.0.10"
44
description = "Python image-metadata-parser utilities"
55
authors = []
66
include = [

0 commit comments

Comments
 (0)