Skip to content

Commit

Permalink
switch to math for isnan
Browse files Browse the repository at this point in the history
  • Loading branch information
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
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 963afd1

Please sign in to comment.