nens / threedigrid-builder

Generate a 3Di simulation grid from a model schematisation.
Other
1 stars 0 forks source link

AttributeError: type object 'object' has no attribute '__getattr__' #246

Closed sentry-io[bot] closed 2 years ago

sentry-io[bot] commented 2 years ago

Sentry Issue: THREEDI-API-STAGING-1SE

AttributeError: type object 'object' has no attribute '__getattr__'
(17 additional frame(s) were not displayed)
...
  File "threedi_tables/interface/raster.py", line 44, in assert_crs_equal
    if get_epsg(actual) == get_epsg(expected):
  File "threedi_tables/interface/raster.py", line 33, in get_epsg
    f"The supplied raster has a non-EPSG projection '{sr.GetName()}'"
  File "osgeo/osr.py", line 638, in <lambda>
    __getattr__ = lambda self, name: _swig_getattr(self, SpatialReference, name)
  File "osgeo/osr.py", line 74, in _swig_getattr
    return _swig_getattr_nondynamic(self, class_type, name, 0)
  File "osgeo/osr.py", line 69, in _swig_getattr_nondynamic
    return object.__getattr__(self, name)
Patrick-Nijman commented 2 years ago

@caspervdw Can we close this?