Build: #19 failed
Job: Test Tools MPI Many Linux 2.28 Rocky 8.10 Py3.10 failed
circle: Test case result
The below summarizes the result of the test " circle" in build 19 of CASA - CMake MPI - Test Tools MPI Many Linux 2.28 Rocky 8.10 Py3.10.
- Description
- circle
- Test class
- tests.tools.image.test_tool_image_deviation.ia_deviation_test
- Method
- test_circle
- Duration
- < 1 sec
- Status
- Failed (Existing Failure)
Error Log
RuntimeError: Exception: File mycirc.im exists, and the user does not want to remove it..
... thrown by static void casa::ImageFactory::_checkOutfile(const casacore::String&, casacore::Bool) at File: /source/casa6/casatools/src/code/imageanalysis/ImageAnalysis/ImageFactory2.cc, line: 594
self = <test_tool_image_deviation.ia_deviation_test testMethod=test_circle>
def test_circle(self):
"""test circles work correctly CAS-10296"""
myia = self._myia
self.imagename = "mycirc.im"
> myia.fromshape(self.imagename, [100, 100])
../../../casatools/tests/tools/image/test_tool_image_deviation.py:264:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../../../../venv/lib/python3.10/site-packages/casatools/image.py:545: in fromshape
return self._swigobj.fromshape(outfile, shape, csys, linear, overwrite, log, type)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <casatools.__casac__.image.image; proxy of <Swig Object of type 'casac::image *' at 0x7f50594ed050> >
args = ('mycirc.im', [100, 100], {}, False, False, True, ...), kwargs = {}
def fromshape(self, *args, **kwargs):
"""
fromshape(self, _outfile, _shape, _csys, _linear, _overwrite, _log, _type) -> bool
Summary:
Construct an empty casa image from a shape
Description:
This function creates a CASA image with the specified shape. All the pixel
values in the image are set to 0. One may create an image with float precision
pixels (type='f'), complex float precision pixels (type='c'), double precision
pixels (type='d'), or complex double precision pixels ('cd'). To use a numpy
array of values to create an image, use ia.fromarray(). To make a 2-D image from
a packaged FITS file, use ia.maketestimage().
If outfile is given, the image is written to the specified disk file. If
outfile is unset, the image analysis tool is associated with a temporary image.
This temporary image may be in memory or on disk, depending on its size. When
you close the image analysis tool (with the ia.close() method, the temporary
image is deleted.
The coordinate system, provided as a coordinate system tool record, is optional.
If provided, it must be dimensionally consistent with the specified shape.
If the coordinate system is not provided, a default coordinate system will be
created. If linear=False (the default), then it is a
standard RA/DEC/Stokes/Spectral coordinate system depending exactly upon the
shape (the Stokes axis must be no longer than 4 pixels and spectral axis may
occur prior to the Stokes axis if eg, shape=[64,64,32,4]. Extra dimensions are
given linear coordinates. If linear=True, then the coordinate system will have
linear coordinates.
The method returns True if successful, False otherwise.
Input Parameters:
outfile Name of output image file. Default is unset.
shape Shape of image. Must be specified.
csys Coordinate System. Default is unset.
linear Make a linear Coordinate System if csys not given?
overwrite Overwrite (unprompted) pre-existing output file?
log Write image creation messages to logger
type Data type of image pixels. 'f' (float), 'c' (complex float), 'd' (double), 'cd' (complex double).
Example:
# Create a 64 x 64 x 128 RA-Dec-Frequency image
ia.fromshape('test2.data', [64,64,128], overwrite=True)
mycs = ia.coordsys(axes=[0,1])
ia.close()
# create temporary image using first and third axes of
# previously created image
ia.fromshape(shape=[10, 20], csys=mycs.torecord())
mycs.done()
ia.close()
The first example creates a zero-filled imagefile named {sff
test2.data} of shape [64,64,128]. If you examine the header with {stff
ia.summary()} you will see the RA/DEC/Spectral coordinate information.
In the second example, a Coordinate System describing the first and second axes
of the image {sff test.data} is created and used to create a 2D temporary image.
# create a 4-D image populated with noise with some interesting metadata
ia.fromshape('noisy.im', [100, 100, 4, 20])
# add the noise
ia.addnoise()
# add a beam
ia.setrestoringbeam(major='4arcmin', minor='3arcmin', pa='20deg')
# add brightness unit
ia.setbrightnessunit('Jy/beam')
ia.done()
# set an interesting object name
imd.open('noisy.im')
imd.set('object','thor')
imd.done()
--------------------------------------------------------------------------------
"""
> return _image.image_fromshape(self, *args, **kwargs)
E RuntimeError: Exception: File mycirc.im exists, and the user does not want to remove it..
E ... thrown by static void casa::ImageFactory::_checkOutfile(const casacore::String&, casacore::Bool) at File: /source/casa6/casatools/src/code/imageanalysis/ImageAnalysis/ImageFactory2.cc, line: 594
../../../../venv/lib/python3.10/site-packages/casatools/__casac__/image.py:1223: RuntimeError