Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/CompPhysVienna/n2p2
/ n1
Function
n1
test/python/test_Neighbor.py:9–16 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
7
8
@pytest.fixture
9
def
n1():
10
global d1x, d1y, d1z
11
d1x, d1y, d1z = 1.0, 2.0, 3.0
12
n = Neighbor()
13
n.dr = Vec3D(d1x, d1y, d1z)
14
n.d = n.dr.norm()
15
n.element = 0
16
return
n
17
18
@pytest.fixture
19
def
n2():
Callers
nothing calls this directly
Calls
3
Neighbor
Class · 0.85
Vec3D
Class · 0.85
norm
Method · 0.80
Tested by
no test coverage detected