Closed hmenke closed 2 years ago
The interface files have been updated by hand again, because there are some other weird c++2py generation errors.
$ c++2py h5py_io.hpp --members_read_only -N h5 -a _h5py -m _h5py -o _h5py --moduledoc="A lightweight hdf5 python interface" --cxxflags="-std=c++20" --includes=./../../c++ --only="object file group h5_read_bare h5_write_bare"
Welcome to C++2py
Parsing the C++ file (may take a few seconds) ...
... done.
Analysing dependencies
====================
Error : The following types can not be converted:
char * (char *)
Traceback (most recent call last):
File "/home/og85ixak/Code/triqs/triqs_unstable/install/bin/c++2py", line 100, in <module>
W.generate_desc_file(output_filename = (args.outputname or filename_1) + "_desc.py")
File "/home/og85ixak/Code/triqs/triqs_unstable/install/lib/python3.8/site-packages/cpp2py/cpp2desc.py", line 288, in generate_desc_file
import_list, converters_list = self.DE(self.get_all_params_ret_type(param_cls_list), types_being_wrapped_or_converted)
File "/home/og85ixak/Code/triqs/triqs_unstable/install/lib/python3.8/site-packages/cpp2py/dependency_analyzer.py", line 75, in __call__
raise TypeError("")
TypeError
The interface files have been updated by hand again, because there are some other weird c++2py generation errors.
Yes, I currently get the same error.
While the file header suggests differently this file was adjusted manually to avoid wrapping also the h5::object
class.
A manual edit is the proper solution here, sorry for the confusion.
I've introduced an additional parameter bool delete_if_exists = true
(same as for create_group
). Please review again, then I will squash and rebase.
Thank you @hmenke for the update! Could you possibly extend the test to check that you can successfully write over existing keys, and that you raise an exception for delete_if_exists = False
? C.f. assertRaises
Squashed and rebased.
This feature is quite useful for having a link in the output archive that always points to the last iteration of the calculation.