Skip to content

Commit

Permalink
Make sure to make link collections available
Browse files Browse the repository at this point in the history
  • Loading branch information
tmadlener committed Oct 1, 2024
1 parent f89ff67 commit fdd6598
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions python/podio_gen/cpp_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -525,8 +525,10 @@ def _write_list(name, target_folder, files, comment):

def _write_all_collections_header(self):
"""Write a header file that includes all collection headers"""

collection_files = (x.split("::")[-1] + "Collection.h" for x in self.datamodel.datatypes)
collection_files = (
x.split("::")[-1] + "Collection.h"
for x in list(self.datamodel.datatypes.keys()) + list(self.datamodel.links.keys())
)
self._write_file(
os.path.join(self.install_dir, self.package_name, f"{self.package_name}.h"),
self._eval_template(
Expand Down

0 comments on commit fdd6598

Please sign in to comment.