diff --git a/ocsmesh/mesh/mesh.py b/ocsmesh/mesh/mesh.py index ebb953f4..ec8110b1 100644 --- a/ocsmesh/mesh/mesh.py +++ b/ocsmesh/mesh/mesh.py @@ -417,7 +417,7 @@ def interpolate( vert_cs = rast_crs.source_crs - vert_cs_name = vert_cs.name + vert_cs_name = vert_cs.name if vert_cs else None idxs = np.argwhere(mask).ravel() interp_info_map.update({ idx: (rast.path, vert_cs_name)