Skip to content

Update examples#1371

Merged
ax3l merged 3 commits intoopenPMD:devfrom
franzpoeschel:update-examples-linear-read
Feb 22, 2023
Merged

Update examples#1371
ax3l merged 3 commits intoopenPMD:devfrom
franzpoeschel:update-examples-linear-read

Conversation

@franzpoeschel
Copy link
Contributor

@franzpoeschel franzpoeschel commented Feb 10, 2023

  • Use Series::close
  • Use Iteration::close
  • Use Series::readIterations and Series::writeIterations

Some storeChunk updates are still to come, but they need #1294 and I will probably just push a further commit to that PR with them.

Also fix two bugs noticed when changing the examples.

TODO:

ReadIterations::ReadIterations(Series series) : m_series(std::move(series))
{}
ReadIterations::ReadIterations(
Series series,

Check notice

Code scanning / CodeQL

Large object passed by value

This parameter of type [Series](1) is 80 bytes - consider passing a const pointer/reference instead.
@ax3l ax3l self-assigned this Feb 10, 2023
@ax3l ax3l added the tests label Feb 10, 2023
Mainly Series::close, Iteration::close, Series::writeIterations,
Series::readIterations, READ_LINEAR
@ax3l
Copy link
Member

ax3l commented Feb 22, 2023

Thanks a lot!

As a follow-up, let's not forget these three:

@ax3l ax3l merged commit f883f8e into openPMD:dev Feb 22, 2023
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.

2 participants