From 8c8ad3316d77cbb3e712a6699f26bcda2c8b8d6c Mon Sep 17 00:00:00 2001 From: Stephen Mather Date: Fri, 16 Aug 2024 11:24:42 -0400 Subject: [PATCH] add comment, remove extra import --- opendm/gcp.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/opendm/gcp.py b/opendm/gcp.py index 61f19425f..4c35b5c22 100644 --- a/opendm/gcp.py +++ b/opendm/gcp.py @@ -1,6 +1,5 @@ import glob import os -import numpy as np from opendm import log from opendm import location from pyproj import CRS @@ -20,8 +19,8 @@ def read(self): # Strip eventual BOM characters contents = contents.replace('\ufeff', '') + # Replace NaN with 0 contents = contents.replace('NaN', '0') - lines = list(map(str.strip, contents.split('\n'))) if lines: self.raw_srs = lines[0] # SRS