Skip to content

Commit 80ced0c

Browse files
committed
fixing and adding additional test cases for the per-timestep switch over
1 parent d6cbdc1 commit 80ced0c

4 files changed

Lines changed: 316 additions & 127 deletions

File tree

CodeEntropy/entropy.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,6 @@ def _compute_entropies(
211211
self._process_united_atom_entropy(
212212
mol_id,
213213
mol,
214-
res_id,
215214
ve,
216215
ce,
217216
level,
@@ -329,7 +328,6 @@ def _process_united_atom_entropy(
329328
self,
330329
mol_id,
331330
mol_container,
332-
res_id,
333331
ve,
334332
ce,
335333
level,

CodeEntropy/levels.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ def get_axes(self, data_container, level, index=0):
377377
trans_axes = data_container.atoms.principal_axes()
378378
rot_axes = data_container.atoms.principal_axes()
379379

380-
if level == "residue":
380+
elif level == "residue":
381381
# Translation
382382
# for residues use principal axes of whole molecule for translation
383383
trans_axes = data_container.atoms.principal_axes()
@@ -409,7 +409,7 @@ def get_axes(self, data_container, level, index=0):
409409
# use spherical coordinates function to get rotational axes
410410
rot_axes = self.get_sphCoord_axes(vector)
411411

412-
if level == "united_atom":
412+
elif level == "united_atom":
413413
# Translation
414414
# for united atoms use principal axes of residue for translation
415415
trans_axes = data_container.residues.principal_axes()

0 commit comments

Comments
 (0)