Skip to content

Commit beb58bd

Browse files
committed
Merge branch 'main' of github.com:GrossfieldLab/loos
Merging latest changes from main...
2 parents d08c4e9 + 7ed9636 commit beb58bd

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

Packages/PyLOOS/cluster-structures.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@
153153

154154
minima = numpy.full_like(numpy.arange(args.num_means),
155155
1.e10,
156-
dtype=numpy.float)
156+
dtype=float)
157157
minima_indices = numpy.zeros([args.num_means], dtype=numpy.int)
158158

159159
for i in range(len(idx)):

Packages/PyLOOS/contact_distance.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@
127127
traj.append(t)
128128

129129
num_pairs = len(residues) * (len(residues)-1) // 2
130-
contacts = numpy.zeros((len(traj), num_pairs), numpy.float)
130+
contacts = numpy.zeros((len(traj), num_pairs), float)
131131

132132
default_box = loos.GCoord(10000., 10000., 10000.)
133133
frame_number = 0

Packages/PyLOOS/packing_score_per_res.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ def __call__(self, parser, namespace, values, option_string = None):
167167
vtraj.append(traj)
168168

169169
# pre-allocate storage as a numpy array
170-
scores = numpy.zeros([len(residues), len(probes), len(vtraj)], numpy.float)
170+
scores = numpy.zeros([len(residues), len(probes), len(vtraj)], float)
171171

172172
frame_index = 0
173173
for frame in vtraj:

Packages/PyLOOS/rare-event-detection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ def LowerTriIndex(row, col, n):
144144
if args.no_backbone:
145145
residues = list([loos.selectAtoms(r, "!backbone") for r in residues])
146146

147-
fc = numpy.zeros([int((len(residues)-1)*len(residues)/2), len(traj)], numpy.float64)
147+
fc = numpy.zeros([int((len(residues)-1)*len(residues)/2), len(traj)], float64)
148148

149149

150150
for (frame, frame_id) in zip(traj, range(len(traj))):

Tools/potential_profile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def read_file(filename):
104104
# dielectric charge density integrated distance
105105
units = 1/eps0 * e_to_C/(ang_to_m**3) * ang_to_m**2
106106

107-
pot = numpy.zeros(data.shape, numpy.float)
107+
pot = numpy.zeros(data.shape, float)
108108
# compute the potential, uncorrected for periodicity
109109
for i in range(len(data)):
110110
for j in range(i+1, len(data)):

loos/src/loos/Voronoi/area_per_molecule.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def main():
109109
""")
110110
sys.exit(0)
111111

112-
histograms = numpy.zeros([len(selection_strings[1:]), num_bins], numpy.float)
112+
histograms = numpy.zeros([len(selection_strings[1:]), num_bins], float)
113113

114114
print("# ", " ".join(sys.argv))
115115

loos/src/loos/Voronoi/lipid_lifetime.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ def main():
133133
protein_centroid.append(loos.Atom())
134134

135135
# set up space to hold the neigbor time series
136-
neighbor_timeseries = numpy.zeros([len(target_lipids), len(traj)], numpy.float)
136+
neighbor_timeseries = numpy.zeros([len(target_lipids), len(traj)], float)
137137

138138
for frame in traj:
139139
# Use the centroid of the protein slice to represent the protein

0 commit comments

Comments
 (0)