From a087d601a121dcee43d9d2b7a7edf724e4373e51 Mon Sep 17 00:00:00 2001 From: Joseph Franck Date: Wed, 25 Feb 2026 09:14:42 -0600 Subject: [PATCH] update for fractions in gps accuracy --- imgparse/parser.py | 6 +++--- pyproject.toml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/imgparse/parser.py b/imgparse/parser.py index 12e7c6b..1f1415a 100644 --- a/imgparse/parser.py +++ b/imgparse/parser.py @@ -606,9 +606,9 @@ def dewarp_flag(self) -> bool: def gps_accuracy(self) -> tuple[float, float, float]: """Get the GPS accuracy values in meters for x, y, and z.""" try: - x_acc = float(self.xmp_data[self.xmp_tags.X_ACCURACY_M]) - y_acc = float(self.xmp_data[self.xmp_tags.Y_ACCURACY_M]) - z_acc = float(self.xmp_data[self.xmp_tags.Z_ACCURACY_M]) + x_acc = eval(self.xmp_data[self.xmp_tags.X_ACCURACY_M]) + y_acc = eval(self.xmp_data[self.xmp_tags.Y_ACCURACY_M]) + z_acc = eval(self.xmp_data[self.xmp_tags.Z_ACCURACY_M]) return x_acc, y_acc, z_acc except KeyError: raise ParsingError( diff --git a/pyproject.toml b/pyproject.toml index 262fede..1a9af4f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "imgparse" -version = "2.0.9" +version = "2.0.10" description = "Python image-metadata-parser utilities" authors = [] include = [