Skip to content

Commit 6e7d81d

Browse files
committed
tweaks to level nodes to ensure they match to shared_data
1 parent 4a76e55 commit 6e7d81d

5 files changed

Lines changed: 9 additions & 16 deletions

File tree

‎CodeEntropy/levels/nodes/build_conformations.py‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,4 @@ def __init__(self):
77

88
def run(self, shared_data):
99
dihedrals = shared_data["dihedrals"]
10-
11-
states = self._dih.build_conformational_states(dihedrals)
12-
shared_data["conformational_states"] = states
10+
shared_data["conformations"] = self._dih.build_conformational_states(dihedrals)

‎CodeEntropy/levels/nodes/compute_axes.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ def run(self, shared_data):
2020
axes[key].append(self._coord.get_axes(bead))
2121

2222
shared_data["axes"] = axes
23-
shared_data["avg_pos"] = avg_pos
23+
shared_data["avg_positions"] = avg_pos

‎CodeEntropy/levels/nodes/compute_dihedrals.py‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,4 @@ def __init__(self):
77

88
def run(self, shared_data):
99
beads = shared_data["beads"]
10-
11-
dihedrals = self._dih.get_dihedrals(beads)
12-
shared_data["dihedrals"] = dihedrals
10+
shared_data["dihedrals"] = self._dih.get_dihedrals(beads)
Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
1-
from CodeEntropy.levels.neighbours import NeighbourList
1+
from CodeEntropy.levels.dihedral_tools import DihedralTools
22

33

4-
class ComputeNeighboursNode:
4+
class BuildConformationsNode:
55
def __init__(self):
6-
self._nb = NeighbourList()
6+
self._dih = DihedralTools()
77

88
def run(self, shared_data):
9-
beads = shared_data["beads"]
10-
11-
neighbours = self._nb.compute(beads)
12-
shared_data["neighbours"] = neighbours
9+
dihedrals = shared_data["dihedrals"]
10+
shared_data["conformations"] = self._dih.build_conformational_states(dihedrals)

‎CodeEntropy/levels/nodes/detect_levels.py‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ def __init__(self):
77

88
def run(self, shared_data):
99
u = shared_data["universe"]
10-
1110
num_mol, levels = self._hier.select_levels(u)
1211

13-
shared_data["levels"] = levels
1412
shared_data["number_molecules"] = num_mol
13+
shared_data["levels"] = levels

0 commit comments

Comments
 (0)