Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Write the configuration_metadata at initialize() in the Writer #262

Merged
merged 1 commit into from
Dec 9, 2024

Conversation

jmcarcell
Copy link
Member

to avoid having properties that are deleted because other algorithms are wrapped in a Sequencer and this Sequencer is deleted before finalize() is called for Writer. This is what is happening in #260 and why some variables are not being saved. The service that is used to get the properties holds references to the properties, so if the properties are deleted, well, apparently they will become empty. This doesn't happen when not using the IOSvc and Writer because the algorithms are not wrapped inside a Sequencer, so the finalize() sequence is called for all of them before any of them is deleted.

BEGINRELEASENOTES

  • Write the configuration_metadata at initialize() in the Writer, to avoid having properties that are deleted because other algorithms are wrapped in a Sequencer and this Sequencer is deleted before finalize() is called for Writer.
  • Add tests for different combinations of old/functional algorithms and using PodioOutput or IOSvc and Writer.

ENDRELEASENOTES

properties that are deleted because other algorithms are wrapped in a
Sequencer and this Sequencer is deleted before `finalize()` is called
for Writer. Add tests for different combinations of old/functional algorithms
and using PodioOutput or IOSvc.
@jmcarcell
Copy link
Member Author

Merging this today if there aren't any comments

Copy link
Contributor

@andresailer andresailer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Copy link
Contributor

@m-fila m-fila left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@jmcarcell jmcarcell merged commit 46c148a into main Dec 9, 2024
7 of 9 checks passed
@jmcarcell jmcarcell deleted the save-metadata branch December 9, 2024 10:46
@giovannimarchiori
Copy link
Contributor

Thanks @jmcarcell !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants