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()