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

[DAPHNE-#492] Creating Subframe of Frame with zero rows #496

Merged
merged 4 commits into from
Apr 11, 2023

Conversation

tomschw
Copy link
Contributor

@tomschw tomschw commented Apr 6, 2023

Fixed problem:

  • Crash when trying to use the Frame constructor which creates a sub-frame without copying data, when using a source Frame with zero rows.

Changes:

  • Add test which reproduces the problem.
  • Fix by excluding the assertions of the constructor when source Frame has zero rows and the expected boundaries of the new frame are both zero.

Fixes #492.

tomschw added 4 commits April 6, 2023 17:35
a Frame with zero rows to check if data
pointers are the same.
zero rows from a Frame with zero rows, by excluding
the assertions.
@pdamme pdamme self-requested a review April 11, 2023 15:26
Copy link
Collaborator

@pdamme pdamme left a comment

Choose a reason for hiding this comment

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

Thanks for this fix, @tomschw. It looks very good to me. Congrats on your first contribution to DAPHNE!

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.

Creating Subframe of Frame with zero rows
2 participants