Build: #18 failed
Job: Test Tools MPI Many Linux 2.28 Rocky 8.10 Py3.10 failed
transpose: Test case result
The below summarizes the result of the test " transpose" in build 18 of CASA - CMake MPI - Test Tools MPI Many Linux 2.28 Rocky 8.10 Py3.10.
- Description
- transpose
- Test class
- tests.tools.image.test_tool_image_transpose.ia_transpose_test
- Method
- test_transpose
- Duration
- < 1 sec
- Status
- Failed (New Failure)
Error Log
RuntimeError: 2025-04-07 19:03:57 SEVERE image::transpose::MPIServer-3 (file src/tools/image/image_cmpt.cc, line 6478) Exception Reported: Table /home/casatest/casa6/casatestutils/nosedir/test_tool_image_transpose/transpose_0/logtable does not exist
self = <test_tool_image_transpose.ia_transpose_test testMethod=test_transpose>
def test_transpose(self):
"""Test transposing"""
imagename = self.good_image
myia = image()
myia.open(imagename)
expecteddata = myia.getchunk()
expectednames = myia.coordsys().names()
myia.done()
count = 0
for order in ["120", 120, ['d', 'f', 'r'], ["declin", "freq", "righ"]]:
for outname in ["transpose_" + str(count), ""]:
> newim = run_transpose(imagename, outname, order)
../../../casatools/tests/tools/image/test_tool_image_transpose.py:119:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../../../casatools/tests/tools/image/test_tool_image_transpose.py:39: in run_transpose
res = myia.transpose(outfile=outfile, order=order)
../../../../venv/lib/python3.10/site-packages/casatools/image.py:2980: in transpose
return _wrap_image(swig_object=self._swigobj.transpose(outfile, order))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <casatools.__casac__.image.image; proxy of <Swig Object of type 'casac::image *' at 0x7f225a7cfae0> >
args = ('transpose_0', '120'), kwargs = {}
def transpose(self, *args, **kwargs):
"""
transpose(self, _outfile, _order) -> image
Summary:
Transpose the image.
Description:
This method transposes the axes in the input image to the specified
order. The associated pixel and mask values and coordinate system are transposed.
If the outfile parameter is empty, only a temporary image is created; no output image
is written to disk.
The order parameter describes the mapping of the input axes to the output axes.
It can be one of three types: a non-negative integer, a string, or a list of
strings. If a string or non-negative integer, it should contain
zero-based digits describing the new order of the input axes. It must
contain the same number of (unique) digits as the number of input axes. For example,
specifying reorder='1032' or reorder=1032 for a four axes image maps input axes
1, 0, 3, 2 to output axes 0, 1, 2, 3. In the case of order being a nonnegative integer
and the zeroth axis in the input being mapped to zeroth axis in the output, the zeroth
digit is implicitly understood to be 0 so that to transpose an image where one would
use a string order='0321', one could equivalently specify an int order=321.
IMPORTANT: When specifying a non-negative integer and mapping the zeroth axis of
the input to the zeroth axis of the output, do *not* explicitly specify the leading
0; eg, specify order=321 rather than order=0321. Python interprets an integer with
a leading 0 as an octal number.
Because of ambiguity for axes numbers greater than nine, using string or integer order
specifications cannot handle images containing more than 10 axes.
The order parameter can also be specified as a list of strings which uniquely minimally match,
ignoring case, the image axis names (ia.coordsys().names()).
So to reorder an image with right ascension, declination, and frequency axes, one could
specify order=['d', 'f', 'r'] or equivalently ['decl', 'frequ', 'right a']. Note that
specifying 'ra' for the right ascension axis will result in an error because 'ra' does
not match the first two characters of right ascension.
Axes can be simultaneously inverted in cases where order is a string or an array of
strings by specifying negative signs in front of the axis/axes to be inverted. So,
in a 4-D image, order='-10-3-2' maps input axes 1, 0, 3, 2 to output axes 0, 1, 2, 3
and reverses the direction and values of input axes 1, 3, and 2.
Input Parameters:
outfile Output image file name. Default is unset.
order Zero-based order of axes in output image (eg '120' $=>$ input$->$ output 0-$>$2, 1-$>$0, 2-$>$1))
Example:
# swap stokes (axis 2) and spectral (axis 3) axes in a 4 dimensional image
ia.open('myimage.fits')
reordim = ia.transpose(outfile='my_reordered_image.im', order='0132')
ia.done()
--------------------------------------------------------------------------------
"""
> return _image.image_transpose(self, *args, **kwargs)
E RuntimeError: 2025-04-07 19:03:57 SEVERE image::transpose::MPIServer-3 (file src/tools/image/image_cmpt.cc, line 6478) Exception Reported: Table /home/casatest/casa6/casatestutils/nosedir/test_tool_image_transpose/transpose_0/logtable does not exist
../../../../venv/lib/python3.10/site-packages/casatools/__casac__/image.py:6251: RuntimeError