Skip to content

Commit

Permalink
fix(pyproj): pyproj.Proj's errcheck keyword option not reliable (#837)
Browse files Browse the repository at this point in the history
  • Loading branch information
mwtoews committed Mar 29, 2020
1 parent 4bfab91 commit 9a1b9e3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion flopy/export/netcdf.py
Expand Up @@ -633,7 +633,7 @@ def initialize_geometry(self):

self.log("building grid crs using proj4 string: {}".format(proj4_str))
try:
self.grid_crs = Proj(proj4_str, preserve_units=True, errcheck=True)
self.grid_crs = Proj(proj4_str, preserve_units=True)

except Exception as e:
self.log("error building grid crs:\n{0}".format(str(e)))
Expand Down
4 changes: 1 addition & 3 deletions flopy/utils/reference.py
Expand Up @@ -261,9 +261,7 @@ def _parse_units_from_proj4(self):
if "EPSG" in self.proj4_str.upper():
import pyproj

crs = pyproj.Proj(self.proj4_str,
preserve_units=True,
errcheck=True)
crs = pyproj.Proj(self.proj4_str, preserve_units=True)
proj_str = crs.srs
else:
proj_str = self.proj4_str
Expand Down

0 comments on commit 9a1b9e3

Please sign in to comment.