Skip to content

Fix error when reading in linear mode from file-based Series #1748

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

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

franzpoeschel
Copy link
Contributor

[~Series] An error occurred: fileBased output can not be written with no iterations.

This happens, since the new series.snapshots() logic will remove Iterations from the object model once they are closed by the user, leading to a situation where at the end of the Series the Iterations container might be empty.

@@ -648,6 +648,8 @@ std::optional<StatefulIterator *> StatefulIterator::loopBody(Seek const &seek)
else if (
series.IOHandler()->m_frontendAccess == Access::READ_LINEAR)
{
std::cout << "Closing Iteration " << *maybe_current_iteration
Copy link
Contributor Author

Choose a reason for hiding this comment

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

TODO: remove this bit again
just as a reminder for myself where this error is caused

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

Successfully merging this pull request may close these issues.

1 participant