Source
138
138
##### Iteration control
139
139
niter,#=0,
140
140
gain,#=0.1,
141
141
threshold,#=0.0,
142
142
nsigma,#=0.0
143
143
cycleniter,#=0,
144
144
cyclefactor,#=1.0,
145
145
minpsffraction,#=0.1,
146
146
maxpsffraction,#=0.8,
147
147
interactive,#=False,
148
+
nmajor,#=0,
148
149
149
150
##### (new) Mask parameters
150
151
usemask,#='user',
151
152
mask,#='',
152
153
pbmask,#='',
153
154
# maskthreshold,#='',
154
155
# maskresolution,#='',
155
156
# nmask,#=0,
156
157
157
158
##### automask by multithresh
231
232
return
232
233
233
234
if(npixels != 0 and weighting=='briggsbwtaper'):
234
235
casalog.post( "The briggsbwtaper weighting scheme is not compatable with npixels != 0.", "WARN", "task_tclean" )
235
236
return
236
237
237
238
238
239
if(facets>1 and parallel==True):
239
240
casalog.post("Facetted imaging currently works only in serial. Please choose pure W-projection instead.","WARN","task_tclean")
240
241
242
+
if (nmajor < 0):
243
+
casalog.post("Negative values for nmajor are reserved for possible future implementation", "WARN", "task_tclean")
244
+
return
245
+
241
246
#####################################################
242
247
#### Construct ImagerParameters object
243
248
#####################################################
244
249
245
250
imager = None
246
251
paramList = None
247
252
248
253
# Put all parameters into dictionaries and check them.
249
254
##make a dictionary of parameters that ImagerParameters take
250
255
417
422
if(specmode=='mfs' and ('stand' in gridder)):
418
423
casalog.post("***Time for making PB: "+"%.2f"%(t2-t1)+" sec", "INFO3", "task_tclean");
419
424
420
425
imager.checkPB()
421
426
422
427
if niter >=0 :
423
428
424
429
## Make dirty image
425
430
if calcres==True:
426
431
t0=time.time();
427
-
imager.runMajorCycle()
432
+
imager.runMajorCycle(isCleanCycle=False)
428
433
t1=time.time();
429
434
casalog.post("***Time for major cycle (calcres=T): "+"%.2f"%(t1-t0)+" sec", "INFO3", "task_tclean");
430
435
431
436
## In case of no deconvolution iterations....
432
437
if niter==0 and calcres==False:
433
438
if savemodel != "none":
434
439
imager.predictModel()
435
440
## Do deconvolution and iterations
436
441
if niter>0 :
437
442