qlat.PointsSelection¶
- class qlat.PointsSelection(*args)¶
- __init__()¶
PointsSelection() PointsSelection(fsel) PointsSelection(total_site) PointsSelection(total_site, xg_arr) PointsSelection(total_site, xg_list) PointsSelection(total_site, xg) PointsSelection(total_site, n_points) PointsSelection(total_site, xg_arr, points_dist_type) # points_dist_type in [ “g”, “l”, “r”, ]
Methods
PointsSelection() PointsSelection(fsel) PointsSelection(total_site) PointsSelection(total_site, xg_arr) PointsSelection(total_site, xg_list) PointsSelection(total_site, xg) PointsSelection(total_site, n_points) PointsSelection(total_site, xg_arr, points_dist_type) # points_dist_type in [ "g", "l", "r", ]
bcast
(self, Int root=0)coordinate_from_idx
(self, Long idx)copy
(self)crc32
(self)from_lat_data
(self, LatDataInt ld)intersect
(self, FieldSelection fsel)return new psel
load
(self, string path, Geometry geo=None, *)load_str
(self, bytes content)only need str at node 0
release_buffer
(self, Buffer buf)save
(self, string path, *[, is_sync_node])save_str
(self)only return str at node 0
set_rand
(self, Coordinate total_site, ...)to_lat_data
(self)Attributes
cdata
geo
n_points
points_dist_type
points_dist_type in [ "g", "l", "r", ]
total_site
view_count
return xg for all selected points shape = (psel.n_points, 4,)