Can't create FrEvent with non-empty params with framecpp-swig-2.6.13
With python-ldas-tools-framecpp-swig 2.6.13 one can now create a FrEvent
with (empty) params:
>>> from LDAStools import frameCPP
>>> frameCPP.FrEvent('test', '', '', frameCPP.GPSTime(0, 0), 0, 0, 0, 0, -1, '', [])
<LDAStools.frameCPP.FrEvent; proxy of <Swig Object of type 'boost::shared_ptr< FrEvent > *' at 0x7ff7a04ad1a0> >
However, when attempting to create an event with non-empty params, I get an error:
>>> frameCPP.FrEvent('test', '', '', frameCPP.GPSTime(0, 0), 0, 0, 0, 0, -1, '', [('test', 1.)])
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/duncan/opt/mambaforge/envs/py310/lib/python3.10/site-packages/LDAStools/frameCPP.py", line 1145, in __init__
_frameCPP.FrEvent_swiginit(self, _frameCPP.new_FrEvent(*args))
TypeError: Unable to translate parameter to Parameters_type
Additional information:
Wrong number or type of arguments for overloaded function 'new_FrEvent'.
Possible C/C++ prototypes are:
FrEvent::FrEvent()
FrEvent::FrEvent(FrEvent::name_type const &,FrEvent::comment_type const &,FrEvent::inputs_type const &,FrEvent::time_type const &,FrEvent::timeBefore_type const,FrEvent::timeAfter_type const,FrEvent::eventStatus_type const,FrEvent::amplitude_type const,FrEvent::probability_type const,FrEvent::statistics_type const &,Parameters_type const &)
I am hoping this is 'user error'. @ed-maros, what's the correct syntax for this call?
Edited by Duncan Macleod