Skip to content

Commit

Permalink
Use getAvailableCollections() instead of the deprecated .collections
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcarcell committed Jan 15, 2024
1 parent 532234f commit 770a1d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/podio/base_writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ def write_frame(self, frame, category, collections=None):
write. If None, all collections are written
"""
# pylint: disable-next=protected-access
self._writer.writeFrame(frame._frame, category, collections or frame.collections)
self._writer.writeFrame(frame._frame, category, collections or frame.getAvailableCollections())

0 comments on commit 770a1d0

Please sign in to comment.