1+ import math
12import MDAnalysis as mda
23import numpy as nmp
34import pandas as pd
45from CodeEntropy import LevelFunctions as LF
56from CodeEntropy import EntropyFunctions as EF
67from CodeEntropy import MDAUniverseHelper as MDAHelper
7- from CodeEntropy import poseidon
88
99def main (arg_dict ):
1010 """
@@ -23,13 +23,13 @@ def main(arg_dict):
2323
2424 # Define trajectory slicing from inputs
2525 start = arg_dict ['start' ]
26- if start == None :
26+ if start is None :
2727 start = 0
2828 end = arg_dict ['end' ]
29- if end == None :
29+ if end is None :
3030 end = - 1
3131 step = arg_dict ['step' ]
32- if step == None :
32+ if step is None :
3333 step = 1
3434 # Count number of frames, easy if not slicing
3535 if start == 0 and end == - 1 and step == 1 :
@@ -100,7 +100,7 @@ def main(arg_dict):
100100
101101 ## Vibrational entropy at every level
102102 # Get the force and torque matrices for the beads at the relevant level
103- force_matrix , torque_matrix = LF .get_matrices (residue_container , level , arg_dict ['verbose' ], start , end , step , number_frames )
103+ force_matrix , torque_matrix = LF .get_matrices (residue_container , level , arg_dict ['verbose' ], start , end , step , number_frames , highest_level )
104104
105105 # Calculate the entropy from the diagonalisation of the matrices
106106 S_trans_residue = EF .vibrational_entropy (force_matrix , "force" , arg_dict ['temper' ],highest_level )
@@ -177,7 +177,7 @@ def main(arg_dict):
177177 if level in ('polymer' , 'residue' ):
178178 ## Vibrational entropy at every level
179179 # Get the force and torque matrices for the beads at the relevant level
180- force_matrix , torque_matrix = LF .get_matrices (molecule_container , level , arg_dict ['verbose' ], start , end , step , number_frames )
180+ force_matrix , torque_matrix = LF .get_matrices (molecule_container , level , arg_dict ['verbose' ], start , end , step , number_frames , highest_level )
181181
182182 # Calculate the entropy from the diagonalisation of the matrices
183183 S_trans = EF .vibrational_entropy (force_matrix , "force" , arg_dict ['temper' ],highest_level )
0 commit comments