Skip to content

Commit

Permalink
Distance matrix initialization bug(?) fixed.
Browse files Browse the repository at this point in the history
np.empty seems to produces hazardous values. It is now replace with np.zeros.
  • Loading branch information
tubiana committed Feb 6, 2021
1 parent 74c193e commit 9baa004
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

MAJOR = 4
MINOR = 8
PATCH = 3
PATCH = 4
VERSION = "{}.{}.{}".format(MAJOR, MINOR, PATCH)

with open("ttclust/version.py", "w") as f:
Expand Down
2 changes: 1 addition & 1 deletion ttclust/ttclust.py
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,7 @@ def create_DM(traj, args):
print("NOTE : Extraction of subtrajectory for time optimisation")
traj_aligned = extract_selected_atoms(rmsd_string, traj_aligned, args["logname"])
# matrix initialization
distances = np.empty((traj.n_frames, traj.n_frames))
distances = np.zeros((traj.n_frames, traj.n_frames))

# Searching if a distance file already exist
distance_file = search_dist_mat(untouch_rmsd_string, args)
Expand Down
2 changes: 1 addition & 1 deletion ttclust/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '4.8.3'
__version__ = '4.8.4'

0 comments on commit 9baa004

Please sign in to comment.