Coverage for /wheeldirectory/casa-6.7.2-31-py3.12.el8/lib/py/lib/python3.12/site-packages/casatools/__casac__/synthesisnormalizer.py: 60%

126 statements  

« prev     ^ index     » next       coverage.py v7.10.1, created at 2025-07-31 10:44 +0000

1# This file was automatically generated by SWIG (http://www.swig.org). 

2# Version 3.0.12 

3# 

4# Do not make changes to this file unless you know what you are doing--modify 

5# the SWIG interface file instead. 

6 

7from sys import version_info as _swig_python_version_info 

8if _swig_python_version_info >= (2, 7, 0): 

9 def swig_import_helper(): 

10 import importlib 

11 pkg = __name__.rpartition('.')[0] 

12 mname = '.'.join((pkg, '_synthesisnormalizer')).lstrip('.') 

13 try: 

14 return importlib.import_module(mname) 

15 except ImportError: 

16 return importlib.import_module('_synthesisnormalizer') 

17 _synthesisnormalizer = swig_import_helper() 

18 del swig_import_helper 

19elif _swig_python_version_info >= (2, 6, 0): 

20 def swig_import_helper(): 

21 from os.path import dirname 

22 import imp 

23 fp = None 

24 try: 

25 fp, pathname, description = imp.find_module('_synthesisnormalizer', [dirname(__file__)]) 

26 except ImportError: 

27 import _synthesisnormalizer 

28 return _synthesisnormalizer 

29 try: 

30 _mod = imp.load_module('_synthesisnormalizer', fp, pathname, description) 

31 finally: 

32 if fp is not None: 

33 fp.close() 

34 return _mod 

35 _synthesisnormalizer = swig_import_helper() 

36 del swig_import_helper 

37else: 

38 import _synthesisnormalizer 

39del _swig_python_version_info 

40 

41try: 

42 _swig_property = property 

43except NameError: 

44 pass # Python < 2.2 doesn't have 'property'. 

45 

46try: 

47 import builtins as __builtin__ 

48except ImportError: 

49 import __builtin__ 

50 

51def _swig_setattr_nondynamic(self, class_type, name, value, static=1): 

52 if (name == "thisown"): 

53 return self.this.own(value) 

54 if (name == "this"): 

55 if type(value).__name__ == 'SwigPyObject': 

56 self.__dict__[name] = value 

57 return 

58 method = class_type.__swig_setmethods__.get(name, None) 

59 if method: 

60 return method(self, value) 

61 if (not static): 

62 if _newclass: 

63 object.__setattr__(self, name, value) 

64 else: 

65 self.__dict__[name] = value 

66 else: 

67 raise AttributeError("You cannot add attributes to %s" % self) 

68 

69 

70def _swig_setattr(self, class_type, name, value): 

71 return _swig_setattr_nondynamic(self, class_type, name, value, 0) 

72 

73 

74def _swig_getattr(self, class_type, name): 

75 if (name == "thisown"): 

76 return self.this.own() 

77 method = class_type.__swig_getmethods__.get(name, None) 

78 if method: 

79 return method(self) 

80 raise AttributeError("'%s' object has no attribute '%s'" % (class_type.__name__, name)) 

81 

82 

83def _swig_repr(self): 

84 try: 

85 strthis = "proxy of " + self.this.__repr__() 

86 except __builtin__.Exception: 

87 strthis = "" 

88 return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,) 

89 

90try: 

91 _object = object 

92 _newclass = 1 

93except __builtin__.Exception: 

94 class _object: 

95 pass 

96 _newclass = 0 

97 

98class synthesisnormalizer(_object): 

99 """Proxy of C++ casac::synthesisnormalizer class.""" 

100 

101 __swig_setmethods__ = {} 

102 __setattr__ = lambda self, name, value: _swig_setattr(self, synthesisnormalizer, name, value) 

103 __swig_getmethods__ = {} 

104 __getattr__ = lambda self, name: _swig_getattr(self, synthesisnormalizer, name) 

105 __repr__ = _swig_repr 

106 

107 def __init__(self): 

108 """__init__(self) -> synthesisnormalizer""" 

109 this = _synthesisnormalizer.new_synthesisnormalizer() 

110 try: 

111 self.this.append(this) 

112 except __builtin__.Exception: 

113 self.this = this 

114 

115 def setupnormalizer(self, *args, **kwargs): 

116 """ 

117 setupnormalizer(self, _normpars) -> bool 

118 

119 

120 

121 Summary: 

122 Set parameters to control scatter/gather operations 

123 

124 Input Parameters: 

125 normpars All parameters for gather/scatter. Mainly file names 

126 

127 -------------------------------------------------------------------------------- 

128 

129 """ 

130 return _synthesisnormalizer.synthesisnormalizer_setupnormalizer(self, *args, **kwargs) 

131 

132 

133 def gatherweightdensity(self): 

134 """ 

135 gatherweightdensity(self) -> bool 

136 

137 

138 

139 Summary: 

140 Gather Gridded Weight images 

141 

142 -------------------------------------------------------------------------------- 

143 

144 """ 

145 return _synthesisnormalizer.synthesisnormalizer_gatherweightdensity(self) 

146 

147 

148 def scatterweightdensity(self): 

149 """ 

150 scatterweightdensity(self) -> string 

151 

152 

153 

154 Summary: 

155 Scatter summed Gridded Weight images 

156 

157 Description: 

158 

159 

160 scatter sum gridded weight image for continuum Briggs style to other siimagestore 

161 returns the disk name if it exists 

162 

163 -------------------------------------------------------------------------------- 

164 

165 """ 

166 return _synthesisnormalizer.synthesisnormalizer_scatterweightdensity(self) 

167 

168 

169 def gatherpsfweight(self): 

170 """ 

171 gatherpsfweight(self) -> bool 

172 

173 

174 

175 Summary: 

176 Gather PSFs if needed 

177 

178 -------------------------------------------------------------------------------- 

179 

180 """ 

181 return _synthesisnormalizer.synthesisnormalizer_gatherpsfweight(self) 

182 

183 

184 def gatherresidual(self): 

185 """ 

186 gatherresidual(self) -> bool 

187 

188 

189 

190 Summary: 

191 Gather Residual Imaged if needed 

192 

193 -------------------------------------------------------------------------------- 

194 

195 """ 

196 return _synthesisnormalizer.synthesisnormalizer_gatherresidual(self) 

197 

198 

199 def dividepsfbyweight(self): 

200 """ 

201 dividepsfbyweight(self) -> bool 

202 

203 

204 

205 Summary: 

206 Divide psf by weight 

207 

208 -------------------------------------------------------------------------------- 

209 

210 """ 

211 return _synthesisnormalizer.synthesisnormalizer_dividepsfbyweight(self) 

212 

213 

214 def makepsfbeamset(self): 

215 """ 

216 makepsfbeamset(self) -> bool 

217 

218 

219 

220 Summary: 

221 make the psf beamset and store it in the psf image 

222 

223 -------------------------------------------------------------------------------- 

224 

225 """ 

226 return _synthesisnormalizer.synthesisnormalizer_makepsfbeamset(self) 

227 

228 

229 def divideweightbysumwt(self): 

230 """ 

231 divideweightbysumwt(self) -> bool 

232 

233 

234 

235 Summary: 

236 Divide psf by weight 

237 

238 -------------------------------------------------------------------------------- 

239 

240 """ 

241 return _synthesisnormalizer.synthesisnormalizer_divideweightbysumwt(self) 

242 

243 

244 def normalizeprimarybeam(self): 

245 """ 

246 normalizeprimarybeam(self) -> bool 

247 

248 

249 

250 Summary: 

251 Normalize PB to peak 1 

252 

253 -------------------------------------------------------------------------------- 

254 

255 """ 

256 return _synthesisnormalizer.synthesisnormalizer_normalizeprimarybeam(self) 

257 

258 

259 def divideresidualbyweight(self, *args, **kwargs): 

260 """ 

261 divideresidualbyweight(self, _singledish) -> bool 

262 

263 

264 

265 Summary: 

266 Divide residual by weight 

267 

268 Input Parameters: 

269 singledish  

270 

271 -------------------------------------------------------------------------------- 

272 

273 """ 

274 return _synthesisnormalizer.synthesisnormalizer_divideresidualbyweight(self, *args, **kwargs) 

275 

276 

277 def dividemodelbyweight(self): 

278 """ 

279 dividemodelbyweight(self) -> bool 

280 

281 

282 

283 Summary: 

284 Divide model by weight 

285 

286 -------------------------------------------------------------------------------- 

287 

288 """ 

289 return _synthesisnormalizer.synthesisnormalizer_dividemodelbyweight(self) 

290 

291 

292 def multiplymodelbyweight(self): 

293 """ 

294 multiplymodelbyweight(self) -> bool 

295 

296 

297 

298 Summary: 

299 Multiply model by weight 

300 

301 -------------------------------------------------------------------------------- 

302 

303 """ 

304 return _synthesisnormalizer.synthesisnormalizer_multiplymodelbyweight(self) 

305 

306 

307 def scattermodel(self): 

308 """ 

309 scattermodel(self) -> bool 

310 

311 

312 

313 Summary: 

314 Scatter model if needed 

315 

316 -------------------------------------------------------------------------------- 

317 

318 """ 

319 return _synthesisnormalizer.synthesisnormalizer_scattermodel(self) 

320 

321 

322 def getimstore(self): 

323 """ 

324 getimstore(self) -> casac::synthesisimstore * 

325 

326 

327 

328 Summary: 

329 Get Image store 

330 

331 -------------------------------------------------------------------------------- 

332 

333 """ 

334 return _synthesisnormalizer.synthesisnormalizer_getimstore(self) 

335 

336 

337 def unlockimages(self): 

338 """ 

339 unlockimages(self) -> bool 

340 

341 

342 

343 Summary: 

344 unlock the images held by this normalizer 

345 

346 -------------------------------------------------------------------------------- 

347 

348 """ 

349 return _synthesisnormalizer.synthesisnormalizer_unlockimages(self) 

350 

351 

352 def setimstore(self, _imstore=None): 

353 """ 

354 setimstore(self, _imstore=None) -> bool 

355 

356 

357 

358 Summary: 

359 Set ImageStore 

360 

361 Input Parameters: 

362 imstore Image Store object 

363 

364 -------------------------------------------------------------------------------- 

365 

366 """ 

367 return _synthesisnormalizer.synthesisnormalizer_setimstore(self, _imstore) 

368 

369 

370 def done(self): 

371 """ 

372 done(self) -> bool 

373 

374 

375 

376 Summary: 

377 Close the tool 

378 

379 -------------------------------------------------------------------------------- 

380 

381 """ 

382 return _synthesisnormalizer.synthesisnormalizer_done(self) 

383 

384 __swig_destroy__ = _synthesisnormalizer.delete_synthesisnormalizer 

385 __del__ = lambda self: None 

386synthesisnormalizer_swigregister = _synthesisnormalizer.synthesisnormalizer_swigregister 

387synthesisnormalizer_swigregister(synthesisnormalizer) 

388 

389# This file is compatible with both classic and new-style classes. 

390 

391