Coverage for /wheeldirectory/casa-6.7.0-12-py3.10.el8/lib/py/lib/python3.10/site-packages/casatools/__casac__/synthesisnormalizer.py: 40%
124 statements
« prev ^ index » next coverage.py v7.6.4, created at 2024-10-31 17:39 +0000
« prev ^ index » next coverage.py v7.6.4, created at 2024-10-31 17:39 +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.
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
41try:
42 _swig_property = property
43except NameError:
44 pass # Python < 2.2 doesn't have 'property'.
46try:
47 import builtins as __builtin__
48except ImportError:
49 import __builtin__
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)
70def _swig_setattr(self, class_type, name, value):
71 return _swig_setattr_nondynamic(self, class_type, name, value, 0)
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))
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,)
90try:
91 _object = object
92 _newclass = 1
93except __builtin__.Exception:
94 class _object:
95 pass
96 _newclass = 0
98class synthesisnormalizer(_object):
99 """Proxy of C++ casac::synthesisnormalizer class."""
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
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
115 def setupnormalizer(self, *args, **kwargs):
116 """
117 setupnormalizer(self, _normpars) -> bool
121 Summary:
122 Set parameters to control scatter/gather operations
124 Input Parameters:
125 normpars All parameters for gather/scatter. Mainly file names
127 --------------------------------------------------------------------------------
129 """
130 return _synthesisnormalizer.synthesisnormalizer_setupnormalizer(self, *args, **kwargs)
133 def gatherweightdensity(self):
134 """
135 gatherweightdensity(self) -> bool
139 Summary:
140 Gather Gridded Weight images
142 --------------------------------------------------------------------------------
144 """
145 return _synthesisnormalizer.synthesisnormalizer_gatherweightdensity(self)
148 def scatterweightdensity(self):
149 """
150 scatterweightdensity(self) -> bool
154 Summary:
155 Scatter summed Gridded Weight images
157 --------------------------------------------------------------------------------
159 """
160 return _synthesisnormalizer.synthesisnormalizer_scatterweightdensity(self)
163 def gatherpsfweight(self):
164 """
165 gatherpsfweight(self) -> bool
169 Summary:
170 Gather PSFs if needed
172 --------------------------------------------------------------------------------
174 """
175 return _synthesisnormalizer.synthesisnormalizer_gatherpsfweight(self)
178 def gatherresidual(self):
179 """
180 gatherresidual(self) -> bool
184 Summary:
185 Gather Residual Imaged if needed
187 --------------------------------------------------------------------------------
189 """
190 return _synthesisnormalizer.synthesisnormalizer_gatherresidual(self)
193 def dividepsfbyweight(self):
194 """
195 dividepsfbyweight(self) -> bool
199 Summary:
200 Divide psf by weight
202 --------------------------------------------------------------------------------
204 """
205 return _synthesisnormalizer.synthesisnormalizer_dividepsfbyweight(self)
208 def makepsfbeamset(self):
209 """
210 makepsfbeamset(self) -> bool
214 Summary:
215 make the psf beamset and store it in the psf image
217 --------------------------------------------------------------------------------
219 """
220 return _synthesisnormalizer.synthesisnormalizer_makepsfbeamset(self)
223 def normalizeprimarybeam(self):
224 """
225 normalizeprimarybeam(self) -> bool
229 Summary:
230 Normalize PB to peak 1
232 --------------------------------------------------------------------------------
234 """
235 return _synthesisnormalizer.synthesisnormalizer_normalizeprimarybeam(self)
238 def divideresidualbyweight(self, *args, **kwargs):
239 """
240 divideresidualbyweight(self, _singledish) -> bool
244 Summary:
245 Divide residual by weight
247 Input Parameters:
248 singledish
250 --------------------------------------------------------------------------------
252 """
253 return _synthesisnormalizer.synthesisnormalizer_divideresidualbyweight(self, *args, **kwargs)
256 def dividemodelbyweight(self):
257 """
258 dividemodelbyweight(self) -> bool
262 Summary:
263 Divide model by weight
265 --------------------------------------------------------------------------------
267 """
268 return _synthesisnormalizer.synthesisnormalizer_dividemodelbyweight(self)
271 def multiplymodelbyweight(self):
272 """
273 multiplymodelbyweight(self) -> bool
277 Summary:
278 Multiply model by weight
280 --------------------------------------------------------------------------------
282 """
283 return _synthesisnormalizer.synthesisnormalizer_multiplymodelbyweight(self)
286 def scattermodel(self):
287 """
288 scattermodel(self) -> bool
292 Summary:
293 Scatter model if needed
295 --------------------------------------------------------------------------------
297 """
298 return _synthesisnormalizer.synthesisnormalizer_scattermodel(self)
301 def getimstore(self):
302 """
303 getimstore(self) -> casac::synthesisimstore *
307 Summary:
308 Get Image store
310 --------------------------------------------------------------------------------
312 """
313 return _synthesisnormalizer.synthesisnormalizer_getimstore(self)
316 def unlockimages(self):
317 """
318 unlockimages(self) -> bool
322 Summary:
323 unlock the images held by this normalizer
325 --------------------------------------------------------------------------------
327 """
328 return _synthesisnormalizer.synthesisnormalizer_unlockimages(self)
331 def setimstore(self, _imstore=None):
332 """
333 setimstore(self, _imstore=None) -> bool
337 Summary:
338 Set ImageStore
340 Input Parameters:
341 imstore Image Store object
343 --------------------------------------------------------------------------------
345 """
346 return _synthesisnormalizer.synthesisnormalizer_setimstore(self, _imstore)
349 def done(self):
350 """
351 done(self) -> bool
355 Summary:
356 Close the tool
358 --------------------------------------------------------------------------------
360 """
361 return _synthesisnormalizer.synthesisnormalizer_done(self)
363 __swig_destroy__ = _synthesisnormalizer.delete_synthesisnormalizer
364 __del__ = lambda self: None
365synthesisnormalizer_swigregister = _synthesisnormalizer.synthesisnormalizer_swigregister
366synthesisnormalizer_swigregister(synthesisnormalizer)
368# This file is compatible with both classic and new-style classes.