code
stringlengths
3
6.57k
len(expected)
range(0, len(votes)
assert_equal(repr(votes[i])
repr(expected[i])
AvalancheVote(BLOCK_ACCEPTED, best_block_hash)
self.log.info("Poll for a selection of blocks...")
int(node.getblockhash(0)
int(node.getblockhash(1)
int(node.getblockhash(10)
int(node.getblockhash(25)
int(node.getblockhash(42)
int(node.getblockhash(96)
int(node.getblockhash(99)
int(node.getblockhash(100)
poll_node.send_poll(various_block_hashes)
poll_node.wait_for_avaresponse()
AvalancheVote(BLOCK_ACCEPTED, h)
node.getblockhash(75)
node.invalidateblock(invalidated_block)
node.reconsiderblock(invalidated_block)
poll_node.send_poll(various_block_hashes)
poll_node.wait_for_avaresponse()
AvalancheVote(BLOCK_ACCEPTED, h)
AvalancheVote(BLOCK_REJECTED, h)
self.log.info("Poll for unknown blocks...")
int(node.getblockhash(0)
int(node.getblockhash(25)
int(node.getblockhash(42)
random.randrange(1 << 255, (1 << 256)
random.randrange(1 << 255, (1 << 256)
random.randrange(1 << 255, (1 << 256)
poll_node.send_poll(various_block_hashes)
poll_node.wait_for_avaresponse()
AvalancheVote(BLOCK_ACCEPTED, h)
AvalancheVote(BLOCK_REJECTED, h)
AvalancheVote(BLOCK_UNKNOWN, h)
AvalancheTest()
main()
CrystalBragg(utils.ToFuObject)
geometry (Type, dimensions, curvature radii and position/orientation)
parameters (angle vs lambda)
tfpf.ID()
array (2,N)
or (N,2)
torus ('Tor')
device ('Lin')
Fixed (class-wise)
__init_subclass__(cls, color='k', **kwdargs)
super(CrystalBragg,cls)
__init_subclass__(**kwdargs)
super()
__init_subclass__(**kwdargs)
copy.deepcopy(CrystalBragg._ddef)
copy.deepcopy(CrystalBragg._dplot)
cls._set_color_ddef(cls._color)
_set_color_ddef(cls, color)
mpl.colors.to_rgba(color)
os.path.abspath('./')
utils.ToFuObjectBase._dstrip.copy()
self.__class__._strip_init()
copy.deepcopy(self.__class__._dplot)
locals()
super()
super(CrystalBragg,self)
__init__(**kwdargs)
_reset(self)
super()
super(CrystalBragg,self)
_reset()
dict.fromkeys(self._get_keys_dgeom()
dict.fromkeys(self._get_keys_dmat()
dict.fromkeys(self._get_keys_dbragg()
dict.fromkeys(self._get_keys_dmisc()
copy.deepcopy(self.__class__._ddef['dplot'])
isinstance(Id,utils.ID)
cls._check_InputsGeneric(dins)
Exception(msg)
_get_largs_dgeom(sino=True)
_get_largs_dmat()
_get_largs_dbragg()
_get_largs_dmisc()
_get_keys_dgeom()
_get_keys_dmat()
_get_keys_dbragg()
_get_keys_dmisc()
dict(locals()
self._get_largs_dgeom()
self._extract_kwdargs(allkwds, largs)
self.set_dgeom(**kwds)
self._get_largs_dmat()
self._extract_kwdargs(allkwds, largs)
self.set_dmat(**kwds)
self._get_largs_dbragg()
self._extract_kwdargs(allkwds, largs)
self.set_dbragg(**kwds)
self._get_largs_dmisc()
self._extract_kwdargs(allkwds, largs)
self._set_dmisc(**kwds)
set_dgeom(self, dgeom=None)
self._get_keys_dgeom()