Skip to content

Commit 33c7060

Browse files
authored
Merge pull request #70 from CCPBioSim/49-remove-end-method-comments
Removed all instances of # End Method comments
2 parents bdcbefc + 79c2767 commit 33c7060

File tree

5 files changed

+0
-52
lines changed

5 files changed

+0
-52
lines changed

CodeEntropy/ConformationFunctions.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,3 @@ def assign_conformation(
8080
conformations[frame] = np.argmin(distances)
8181

8282
return conformations
83-
84-
85-
# END assign_conformation

CodeEntropy/EntropyFunctions.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,6 @@ def frequency_calculation(lambdas, temp):
5353
return frequencies
5454

5555

56-
# END frequency_calculation
57-
58-
5956
def vibrational_entropy(matrix, matrix_type, temp, highest_level):
6057
"""
6158
Function to calculate the vibrational entropy for each level calculated from eq. (4)
@@ -110,9 +107,6 @@ def vibrational_entropy(matrix, matrix_type, temp, highest_level):
110107
return S_vib_total
111108

112109

113-
# END vibrational_entropy
114-
115-
116110
def conformational_entropy(
117111
data_container, dihedrals, bin_width, start, end, step, number_frames
118112
):
@@ -166,9 +160,6 @@ def conformational_entropy(
166160
return S_conf_total
167161

168162

169-
# END conformational_entropy
170-
171-
172163
def orientational_entropy(neighbours_dict):
173164
"""
174165
Function to calculate orientational entropies from eq. (10) in J. Higham, S.-Y.
@@ -211,6 +202,3 @@ def orientational_entropy(neighbours_dict):
211202
# implement a case for molecules with hydrogen bonds but to a lesser
212203
# extent than water
213204
return S_or_total
214-
215-
216-
# END orientational_entropy

CodeEntropy/GeometricFunctions.py

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,6 @@ def get_beads(data_container, level):
4343
return list_of_beads
4444

4545

46-
# END
47-
48-
4946
def get_axes(data_container, level, index=0):
5047
"""
5148
Function to set the translational and rotational axes.
@@ -126,9 +123,6 @@ def get_axes(data_container, level, index=0):
126123
return trans_axes, rot_axes
127124

128125

129-
# END
130-
131-
132126
def get_avg_pos(atom_set, center):
133127
"""
134128
Function to get the average position of a set of atoms.
@@ -168,9 +162,6 @@ def get_avg_pos(atom_set, center):
168162
return avg_position
169163

170164

171-
# END
172-
173-
174165
def get_sphCoord_axes(arg_r):
175166
"""
176167
For a given vector in space, treat it is a radial vector rooted at 0,0,0 and
@@ -243,9 +234,6 @@ def get_sphCoord_axes(arg_r):
243234
return spherical_basis
244235

245236

246-
# END
247-
248-
249237
def get_weighted_forces(
250238
data_container, bead, trans_axes, highest_level, force_partitioning=0.5
251239
):
@@ -291,9 +279,6 @@ def get_weighted_forces(
291279
return weighted_force
292280

293281

294-
# END
295-
296-
297282
def get_weighted_torques(data_container, bead, rot_axes, force_partitioning=0.5):
298283
"""
299284
Function to calculate the moment of inertia weighted torques for a given bead.
@@ -379,9 +364,6 @@ def get_weighted_torques(data_container, bead, rot_axes, force_partitioning=0.5)
379364
return weighted_torque
380365

381366

382-
# END
383-
384-
385367
def create_submatrix(data_i, data_j, number_frames):
386368
"""
387369
Function for making covariance matrices.
@@ -411,9 +393,6 @@ def create_submatrix(data_i, data_j, number_frames):
411393
return submatrix
412394

413395

414-
# END
415-
416-
417396
def filter_zero_rows_columns(arg_matrix, verbose):
418397
"""
419398
function for removing rows and columns that contain only zeros from a matrix
@@ -461,6 +440,3 @@ def filter_zero_rows_columns(arg_matrix, verbose):
461440
)
462441

463442
return arg_matrix
464-
465-
466-
# END

CodeEntropy/LevelFunctions.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,6 @@ def select_levels(data_container, verbose):
4848
return number_molecules, levels
4949

5050

51-
# END get_levels
52-
53-
5451
def get_matrices(
5552
data_container, level, verbose, start, end, step, number_frames, highest_level
5653
):
@@ -155,9 +152,6 @@ def get_matrices(
155152
return force_matrix, torque_matrix
156153

157154

158-
# END get_matrices
159-
160-
161155
def get_dihedrals(data_container, level):
162156
"""
163157
Define the set of dihedrals for use in the conformational entropy function.
@@ -233,6 +227,3 @@ def get_dihedrals(data_container, level):
233227
dihedrals.append(atom_group.dihedral)
234228

235229
return dihedrals
236-
237-
238-
# END get_dihedrals

CodeEntropy/main_mcc.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -420,8 +420,6 @@ def main():
420420
with open(args.outfile, "a") as out:
421421
print(molecule, "\t", level, "\tConformational\t", S_conf, file=out)
422422

423-
# End united atom vibrational and conformational calculations #
424-
425423
if level in ("polymer", "residue"):
426424
# Vibrational entropy at every level
427425
# Get the force and torque matrices for the beads at the relevant level
@@ -540,8 +538,6 @@ def main():
540538
print(molecule, "\t Molecule\tTotal Entropy\t", S_molecule, file=out)
541539

542540

543-
# END main function
544-
545541
if __name__ == "__main__":
546542

547543
main()

0 commit comments

Comments
 (0)