Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
switch to math for isnan
Browse files Browse the repository at this point in the history
smathermather committed Aug 16, 2024
1 parent 097ef20 commit 963afd1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion opensfm/io.py
Original file line number Diff line number Diff line change
@@ -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:

0 comments on commit 963afd1

Please sign in to comment.