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

Shallow copy of npy_array_t #31

Merged
merged 8 commits into from
Sep 23, 2024
Merged

Conversation

alcubierre-drive
Copy link
Contributor

Following the discussion in #30, I implemented my suggestion of having a private data member that is NULL in case an npy_array_t* object doesn't own its data. If you think the interface is getting too cluttered by this I would be very happy to discuss other approaches.

@oysteijo
Copy link
Owner

Yes! Yes! Yes! This makes sense! Let me just test out a few things. Should we also have some tests in the CI for for this feature?

@oysteijo
Copy link
Owner

oysteijo commented Sep 22, 2024

Yes! Please add a run of the 'copying` example in the .github/workflows/make_and_examples.yaml file.

@alcubierre-drive
Copy link
Contributor Author

I added the example to CI, including another example that reads the created file and checks for correctnes of the data.

@oysteijo
Copy link
Owner

oysteijo commented Sep 23, 2024

Merging this! Thanks a lot Lennart! I will even close #14 with this merge.

@oysteijo oysteijo merged commit cab5548 into oysteijo:master Sep 23, 2024
1 check passed
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.

2 participants