1 from __future__
import print_function
10 volume_mask = 0xff00000000000000
11 boundary_mask = 0x00ff000000000000
12 layer_mask = 0x0000ff0000000000
13 approach_mask = 0x000000f000000000
14 sensitive_mask = 0x0000000ffff00000
15 channel_mask = 0x00000000000fffff
18 assert type(value) == long
22 """Returns the index, counting from 0, of the
23 least significant set bit in `x`.
25 return (x&-x).bit_length()-1
52 if mask ==
None:
return self.
_value
56 fmt =
"GeometryIdentifier(vol={}, bnd={}, lay={}, app={}, sen={}, chn={})"
57 return fmt.format(self.
vol_id,