MCPcopy Create free account
hub / github.com/CompPhysVienna/n2p2 / n2

Function n2

test/python/test_Neighbor.py:19–26  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

17
18@pytest.fixture
19def n2():
20 global d2x, d2y, d2z
21 d2x, d2y, d2z = 4.0, 5.0, 6.0
22 n = Neighbor()
23 n.dr = Vec3D(d2x, d2y, d2z)
24 n.d = n.dr.norm()
25 n.element = 1
26 return n
27
28class Test___cinit__:
29 def test_skeleton_initialization(self):

Callers

nothing calls this directly

Calls 3

NeighborClass · 0.85
Vec3DClass · 0.85
normMethod · 0.80

Tested by

no test coverage detected