-
Notifications
You must be signed in to change notification settings - Fork 2
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
[FEATURE] Multi-Layout file #209
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #209 +/- ##
==========================================
- Coverage 99.94% 92.47% -7.48%
==========================================
Files 45 46 +1
Lines 1820 1833 +13
Branches 0 570 +570
==========================================
- Hits 1819 1695 -124
- Misses 1 6 +5
- Partials 0 132 +132 ☔ View full report in Codecov by Sentry. |
TEST(layout_test, read_from_partitioned_layout) | ||
{ | ||
// layout consists of three partitions, written one after the other | ||
std::stringstream ss{R"layout_file(#TOP_LEVEL_IBF fullest_technical_bin_idx:111 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you make something in the layout dependent on i
(e.g. Some bin index), such that we can be sure that each layout is parsed?
This PR adds the possibility of a a single Layout file featuring multiple layouts. This is important in case of a partitioned HIBF.
When reading a layout, we formerly read until the end of the file.
Now we read either until the end of the file is reached OR a new header starts.
To read all layouts out of a layout file, one need to iteratively call
laout.read_from
on the stream.