Skip to content

Commit 3d32cef

Browse files
authored
clean up comments (#66)
1 parent 0bb531c commit 3d32cef

File tree

1 file changed

+1
-15
lines changed

1 file changed

+1
-15
lines changed

floater/generators.py

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -198,25 +198,19 @@ def to_mitgcm_format(self, filename, tstart=0, iup=0, mesh='rect',
198198

199199
# kpart: depth of float release in meters, depth is negative, i.e. -1500
200200
# for 1500 m
201-
#kpart = -0.5 # for 3d float
202201
kpart = -0.5
203202

204203
# kfloat: target level of float (??)
205204
kfloat = -0.5
206205

207206
# itop: time of float at the surface (in s)
208-
209207
itop = 0
208+
210209
# end time of integration of float (in s); note if tend = 1 floats are
211210
# integrated till the end of the integration;
212211
tend = -1;
213212

214-
# initialization
215-
#tstart = 259200;
216-
217213
# number of floats
218-
# previous way: N = self.Nx * self.Ny
219-
# which was was wrong for masked cases
220214
N = len(lon)
221215

222216
output_dtype = np.dtype(dtype)
@@ -237,20 +231,12 @@ def to_mitgcm_format(self, filename, tstart=0, iup=0, mesh='rect',
237231
# - the number of floats on that tile in the first record
238232
# - the total number of floats in the sixth record
239233

240-
# original
241-
# flt_matrix[0,0] = N;
242-
# flt_matrix[1,0] = -1;
243-
# flt_matrix[5,0] = N;
244-
# flt_matrix[8,0] = -1;
245-
246-
# copied from Andreas
247234
flt_matrix[0,0] = N;
248235
flt_matrix[0,1] = -1
249236
flt_matrix[0,4] = -1
250237
flt_matrix[0,5] = N
251238
flt_matrix[0,8] = -1
252239

253-
#fname = os.path.join(output_dir, output_fname)
254240
return flt_matrix.tofile(filename)
255241

256242
def to_pickle(self, filename='./floatset.pkl'):

0 commit comments

Comments
 (0)