Skip to content

Commit

Permalink
Merge pull request #152 from logsdail/mrobinson
Browse files Browse the repository at this point in the history
Updated documentation of vibrations.py
  • Loading branch information
AkashHiregange committed Apr 3, 2024
2 parents 105ab6c + 62f7212 commit 7fec744
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions carmm/analyse/vibrations.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@


def vib_analysis(model):
''' Returns a list displacemet of bonds/atoms in a trajectory.
'''
Returns a list displacement of bonds/atoms in a trajectory.
Parameters:
model: Atoms object
e.g trajectory file to calculate bond displacement
model: Trajectory File
TODO: - Resolve for periodic systems - functionally currently doesn't work
Expand All @@ -21,20 +23,22 @@ def vib_analysis(model):
for j in range(i + 1, len(atot)):
distances = []
for atoms in traj:
dist = atoms.get_distances(i, j)
dist = atoms.get_distances(i, j, mic=True)
distances.append(float(dist))
dist_list = distances
return dist_list


class plot_vibration_data:
''' Returns a graph showing displacement of bonds/atoms in a vibration trajectory from ASE.
# Parameters:
# x_axis: length of data returned from vib_analysis()
y_xis: data returned by vib_analysis()
title: title for plot
'''
Returns a graph showing displacement of bonds/atoms in a vibration trajectory from ASE.
Parameters:
x_axis: length of data returned from vib_analysis()
y_axis: data returned by vib_analysis()
title: title for plot
TODO: would be nice to able to plot atomic/elemental information on plot i.e which atoms are being displaced
TODO: would be nice to able to plot atomic/elemental information on plot i.e which atoms are being displaced
'''


Expand Down

0 comments on commit 7fec744

Please sign in to comment.