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

Pairdev: writing data to H5::Groups. #294

Closed

Conversation

samcunliffe
Copy link
Member

No description provided.

@samcunliffe samcunliffe changed the base branch from main to 181-hdf5-io-pairdev May 12, 2023 14:32
@samcunliffe samcunliffe force-pushed the 181-pairdev-write-dataset-to-group branch from 9fa3b71 to 986bd02 Compare May 12, 2023 14:33
* @brief Convert from C++ datatype T to a H5::PredType for HDF5 write out.
*
* TODO: Doesn't support complex doubles. Might need a compount datatype.
* Investigate how to read complex doubles first.
Copy link
Member Author

Choose a reason for hiding this comment

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

We should probably throw an std::logic_error("Not implemented") if we try with T as a complex double.

Also compountcompound (might me my typo).

* @brief Checks if `name` exists in this file.
*
* @details Just wraps some ugly H5Lexists call from the C-API.
* TODO: does this work if given 'group/subgroup' ?
Copy link
Member Author

Choose a reason for hiding this comment

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

TODO: can we just use file_->nameExists?

@codecov
Copy link

codecov bot commented May 19, 2023

Codecov Report

Patch and project coverage have no change.

Comparison is base (e414f1c) 48% compared to head (f3a8671) 48%.

Additional details and impacted files
@@                Coverage Diff                 @@
##           181-hdf5-io-pairdev   #294   +/-   ##
==================================================
- Coverage                   48%    48%   -0%     
==================================================
  Files                       72     72           
  Lines                     7931   7922    -9     
==================================================
- Hits                      3817   3802   -15     
- Misses                    4114   4120    +6     
Impacted Files Coverage Δ
tdms/include/hdf5_io/hdf5_base.h 0% <ø> (ø)
tdms/include/hdf5_io/hdf5_reader.h 0% <ø> (-27%) ⬇️
tdms/src/hdf5_io/hdf5_base.cpp 100% <ø> (+23%) ⬆️
tdms/src/hdf5_io/hdf5_reader.cpp 93% <ø> (-<1%) ⬇️

... and 1 file with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

samcunliffe and others added 5 commits May 19, 2023 11:03
Any file object.

Co-authored-by: willGraham01 <[email protected]>
Some WIP typedef is incomplete and we've hardcoded
H5::PredType::Double. Need to convert from native C++.

Co-authored-by: Will Graham <[email protected]>
Convert between native C++ datatypes and H5::PredTypes.
Needs some unit testing!

Co-authored-by: willGraham01 <[email protected]>
* Update catch2 (#275)

* Update catch2.

v3.3 has some nice features. Including a SKIP() macro. 💙

* Skip the segfault test.

* SKIP unit tests if sample data not generated.

Since we're introducing a bit of complexity into the unit-testing
framework, at least we should skip the tests (developer quality of
life) with a nice warning explaining why.

* Skip function.

2 lines → 1. And gets rid of another global.

Co-authored-by: willGraham01 <[email protected]>

* Revert to explicitly skipping the broken test.

---------

Co-authored-by: willGraham01 <[email protected]>
@willGraham01 willGraham01 force-pushed the 181-pairdev-write-dataset-to-group branch from a8d6b56 to f3a8671 Compare May 19, 2023 10:03
@samcunliffe
Copy link
Member Author

Closing this PR but with the caveat that we might want to cherry-pick and use c266ef9.

The last commit here is the merge of #295 which we also may need.

... so keeping the branch for now.

@samcunliffe samcunliffe closed this Jun 5, 2023
@samcunliffe samcunliffe deleted the 181-pairdev-write-dataset-to-group branch June 13, 2023 10:03
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.

1 participant