qlat.PointsSelection

class qlat.PointsSelection(*args)
__init__()

PointsSelection() 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) PointsSelection(geo) # full selection (type “f”) PointsSelection(fsel) # (type “l”) PointsSelection(fsel, ssp) PointsSelection(psel) # A copy of psel. PointsSelection(psel, ssp) PointsSelection(psel, ssp, is_reverse) # points_dist_type in [ “g”, “f”, “l”, “r”, “o”, ]

Methods

__init__

PointsSelection() 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) PointsSelection(geo) # full selection (type "f") PointsSelection(fsel) # (type "l") PointsSelection(fsel, ssp) PointsSelection(psel) # A copy of psel.

bcast(self, Int root=0)

coordinate_from_idx(self, Long idx)

copy(self)

from_lat_data(self, LatDataInt ld)

hash_sha256(self)

Return hash of psel.

init_from_fsel(self, FieldSelection fsel, ...)

Shuffle according to ssp.

init_from_geo(self, Geometry geo)

points_dist_type in [ "f", ]

init_from_psel(self, PointsSelection psel, ...)

Shuffle according to ssp.

init_from_total_site(self, Coordinate total_site)

xg_arr can be n_points, xg, xg_arr, xg_list.

intersect(self, FieldSelection fsel)

return new psel

is_containing(self, sel_small)

is_containing_fsel(self, ...)

is_containing_psel(self, ...)

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, ...)

swap(self, PointsSelection other)

swap_sp_cast(self, SelectedPointsChar other, ...)

to_lat_data(self)

Attributes

cdata

geo

n_points

points_dist_type

points_dist_type in [ "g", "f", "l", "r", "o", ] Meaning: Global, Full, Local, Random, Other

total_site

view_count

xg_arr

return xg for all selected points shape = (psel.n_points, 4,)