Skip to content

Commit fa3e30a

Browse files
committed
simplify
1 parent 2ad1bed commit fa3e30a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

maps/src/maputils.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,7 @@ pyconvolve_map(const FlatSkyMap &map, const py::object &val)
522522
return ConvolveMap(map, val.cast<const FlatSkyMap &>());
523523

524524
// reach into python
525-
auto pykernel = py::module_::import("spt3g.maps").attr("FlatSkyMap")(val, map.yres());
525+
auto pykernel = py::type::of<FlatSkyMap>()(val, map.yres());
526526
return ConvolveMap(map, pykernel.cast<const FlatSkyMap &>());
527527
}
528528

0 commit comments

Comments
 (0)