Skip to content

Commit c609d1e

Browse files
committed
Bug fix: PointCloud float32/float64
1 parent 2ab8b3a commit c609d1e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

deepxde/geometry/pointcloud.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import numpy as np
22

33
from .geometry import Geometry
4+
from .. import config
45
from ..data import BatchSampler
56

67

@@ -12,7 +13,7 @@ class PointCloud(Geometry):
1213
"""
1314

1415
def __init__(self, points):
15-
self.points = np.asarray(points)
16+
self.points = np.asarray(points, dtype=config.real(np))
1617
self.num_points = len(points)
1718
super().__init__(
1819
len(points[0]),

0 commit comments

Comments
 (0)