Build: #19 failed
Job: Test Tools MPI Many Linux 2.28 Rocky 8.10 Py3.10 failed
table keyword interface: Test case result
The below summarizes the result of the test " table keyword interface" in build 19 of CASA - CMake MPI - Test Tools MPI Many Linux 2.28 Rocky 8.10 Py3.10.
- Description
- table keyword interface
- Test class
- tests.tools.componentlist.test_tool_componentlist.componentlist_test
- Method
- test_table_keyword_interface
- Duration
- < 1 sec
- Status
- Failed (Existing Failure)
Error Log
RuntimeError: FiledesIO: file /home/casatest/casa6/casatestutils/nosedir/test_tool_componentlist/my.cl/table.f0 could not be created: No such file or directory
self = <test_tool_componentlist.componentlist_test testMethod=test_table_keyword_interface>
def test_table_keyword_interface(self):
"""Test putting, getting, querying table keywords"""
cl = cltool()
msg = 'A table is not attached to this ComponentList'
self.exception_check(
cl.putkeyword, {'keyword': 'metadata', 'value': 'x'}, msg, exc=RuntimeError
)
self.exception_check(
cl.getkeyword, {'keyword': 'metadata'}, msg, exc=RuntimeError
)
self.exception_check(
cl.haskeyword, {'keyword': 'metadata'}, msg, exc=RuntimeError
)
cl.addcomponent(
[1,0,0,0],'Jy','Stokes',['J2000', '10:30:00.00', '-20.00.00.0'],
'gaussian','4arcsec','2arcsec','30deg'
)
self.exception_check(
cl.putkeyword, {'keyword': 'metadata', 'value': 'x'}, msg, exc=RuntimeError
)
self.exception_check(
cl.getkeyword, {'keyword': 'metadata'}, msg, exc=RuntimeError
)
self.exception_check(
cl.haskeyword, {'keyword': 'metadata'}, msg, exc=RuntimeError
)
> cl.rename(self.tablename)
../../../casatools/tests/tools/componentlist/test_tool_componentlist.py:144:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../../../../venv/lib/python3.10/site-packages/casatools/componentlist.py:251: in rename
return self._swigobj.rename(filename, log)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <casatools.__casac__.componentlist.componentlist; proxy of <Swig Object of type 'casac::componentlist *' at 0x7f03cd76bf60> >
args = ('my.cl', True), kwargs = {}
def rename(self, *args, **kwargs):
"""
rename(self, _filename, _log) -> bool
Summary:
Give the list a name so it can save itself. use close to save to disk
Description:
The rename function is used to specify the name of the table
associated with this componentlist.
When a componentlist is created it is not associated with an casa
table. So when the componentlist is removed from memory its
contents are lost. But if a name is attached to the componentlist,
using the rename function, then its contents are saved in a table
with the specified name when the componentlist is closed
NOTE: that by just using rename the componentlist is not ensured
to be on disk; to be sure use close after rename
If the componentlist is created using the open() constructor then
this function will rename the table associated with the list to
the user specified name. You cannot rename a componentlist that
has been opened read only.
Input Parameters:
filename The filename of the table
log Send a message to the logger
Example:
cl.simulate(1);
cl.setshape(0, 'gaussian', '35mas', '27mas', '-10d')
cl.setflux(0, [1.0, 0.2, 0.1, 0.01]);
cl.rename('smallblob.cl');
cl.close();
cl.open('smallblob.cl')
n=cl.length()
This example starts with an empty componentlist tool and then adds
one component to it. The parameters of this component are then
modified to change the shape and flux and the list saved in the
casa table called 'smallblob.cl' The data is not written to
disk until the list is closed, and when it is the componentlist is
reset. So you need to reopen it if you want to interact with it.
--------------------------------------------------------------------------------
"""
> return _componentlist.componentlist_rename(self, *args, **kwargs)
E RuntimeError: FiledesIO: file /home/casatest/casa6/casatestutils/nosedir/test_tool_componentlist/my.cl/table.f0 could not be created: No such file or directory
../../../../venv/lib/python3.10/site-packages/casatools/__casac__/componentlist.py:777: RuntimeError