From 963afd1a48fe85bf93a9a765b5cf2afa8176b766 Mon Sep 17 00:00:00 2001 From: Stephen Mather Date: Fri, 16 Aug 2024 12:26:14 -0400 Subject: [PATCH] switch to math for isnan --- opensfm/io.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/opensfm/io.py b/opensfm/io.py index 59c661f1a..7b3b41dbf 100644 --- a/opensfm/io.py +++ b/opensfm/io.py @@ -2,6 +2,7 @@ import logging import os import shutil +import math from abc import ABC, abstractmethod from pathlib import Path from typing import Union, Dict, Any, Iterable, List, IO, Tuple, TextIO, Optional @@ -848,7 +849,7 @@ def _read_gcp_list_lines( point = points[key] else: # Convert 3D coordinates - if np.isnan(alt): + if math.isnan(alt): alt = 0 has_altitude = False else: