From 1f5d69e98f82dd1975c42cf2b5b6fe3ce48cf238 Mon Sep 17 00:00:00 2001 From: Tsing <2719584131@qq.com> Date: Mon, 13 Sep 2021 17:18:32 +0800 Subject: [PATCH] Update plot_surface.py --- plot_surface.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plot_surface.py b/plot_surface.py index 70a974ac..2fed96a8 100755 --- a/plot_surface.py +++ b/plot_surface.py @@ -59,11 +59,11 @@ def setup_surface_file(args, surf_file, dir_file): f['dir_file'] = dir_file # Create the coordinates(resolutions) at which the function is evaluated - xcoordinates = np.linspace(args.xmin, args.xmax, num=args.xnum) + xcoordinates = np.linspace(args.xmin, args.xmax, num=int(args.xnum)) f['xcoordinates'] = xcoordinates if args.y: - ycoordinates = np.linspace(args.ymin, args.ymax, num=args.ynum) + ycoordinates = np.linspace(args.ymin, args.ymax, num=int(args.ynum)) f['ycoordinates'] = ycoordinates f.close()