From 7d98804bca14aad738802d8539bf7ff9839ada89 Mon Sep 17 00:00:00 2001 From: Patrick Shriwise Date: Wed, 27 Feb 2019 21:57:09 -0600 Subject: [PATCH] Renaming external function. --- openmc/capi/plot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openmc/capi/plot.py b/openmc/capi/plot.py index 3e3ec2e68f..22f1416b23 100644 --- a/openmc/capi/plot.py +++ b/openmc/capi/plot.py @@ -177,7 +177,7 @@ _dll.openmc_id_map.argtypes= [POINTER(_Plot),] _dll.openmc_id_map.restype = c_int _dll.openmc_id_map.errcheck = _error_handler -def image_data_for_plot(plot): +def id_map(plot): img_data = np.zeros((plot.pixels_[0], plot.pixels_[1], 2), dtype=np.dtype('int32')) out = _dll.openmc_id_map(POINTER(_Plot)(plot), img_data.ctypes.data_as(POINTER(c_int32))) return img_data