Skip to content

HDF5 reading functions - #67

Merged
lazappi merged 5 commits into
hdf5-structurefrom
hdf5-content
May 5, 2023
Merged

lazappi merged 5 commits into
hdf5-structurefrom
hdf5-content

Conversation

@LouiseDck

@LouiseDck LouiseDck commented May 4, 2023 •

Copy link
Copy Markdown
Collaborator

Functions to read certain datatypes from the hdf5 files.

Tests need to be added for the following reading functions:

  • mapping
  • dataframe
  • nullables
  • categoricals

Following bugs still need fixing:

  • String arrays are not 2d matrices when they should be
  • A dataframe with no columns does need to have the right amount of rows

@LouiseDck LouiseDck linked an issue May 4, 2023 that may be closed by this pull request
This was linked to issues May 4, 2023
@rcannood
rcannood changed the base branch from main to hdf5-structure May 4, 2023 21:26
Comment thread R/HDF5-read.R
rhdf5::h5read(file, name)
# reads in transposed
string_array <- rhdf5::h5read(file, name)
if(is.matrix(string_array)){

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
if(is.matrix(string_array)){
if (is.matrix(string_array)) {

@lazappi

lazappi commented May 5, 2023

Copy link
Copy Markdown
Collaborator
  • A dataframe with no columns does need to have the right amount of rows

This I have already done in hdf5-structure. Possibly the cause of the conflict above.

@lazappi

lazappi commented May 5, 2023

Copy link
Copy Markdown
Collaborator

@LouiseDck @rcannood What are your thoughts on merging this into hdf5-structure as is and opening smaller PRs for anything that still needs to be done? I'm finding all the branches hard to manage and most of this has already been merged there anyway.

@rcannood

rcannood commented May 5, 2023

Copy link
Copy Markdown
Member

I think these PRs are for you to merge ;) When Louise and I are working on something we're doing it in separate branches to ensure we don't cause any conflicts in your ongoing work.

@lazappi

lazappi commented May 5, 2023

Copy link
Copy Markdown
Collaborator

Ok, cool. In that case I'm going to try start merging things.

@lazappi
lazappi marked this pull request as ready for review May 5, 2023 09:38
@lazappi
lazappi merged commit fdaa0fb into hdf5-structure May 5, 2023
@rcannood
rcannood deleted the hdf5-content branch July 5, 2023 10:37
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.

Read H5AD string scalar Read H5AD numeric scalar Read H5AD mapping

3 participants