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

Added functionality to write tuples as custom dtypes #63

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

Lala5th
Copy link

@Lala5th Lala5th commented Aug 1, 2020

Added cnpy-config.cmake.in so it would be easier to add using
find_package to other cmake projects.

I have tested this with a cmake project that depends on cnpy. It worked well on Linux for ~/.local as install dir.

Added cnpy-config.cmake.in so it would be easier to add using 
find_package to other cmake projects.
I have implemented all write functionality (Maybe apart from tedious 
checking of dtype).
Read functionality might be possible, but I have not looked at that part 
of the code so I am unsure about the difficulty of the undertaking.
@Lala5th
Copy link
Author

Lala5th commented Aug 7, 2020

I have also added now functionality so custom, std::tuple arrays can be written, and appended to npy and npz, files with their custom created dtype descriptor. Created a secondary npy header parser for this. Preliminary tests seem to suggest it holds up well and does not cause issues.
Requires C++17 standard to compile and run against due to the way I implemented the variadic templates.

@Lala5th Lala5th changed the title Updated cmake. Added functionality to write tuple's as custom dtypes Aug 7, 2020
@Lala5th Lala5th changed the title Added functionality to write tuple's as custom dtypes Added functionality to write tuples as custom dtypes Aug 10, 2020
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