Skip to content

Wrap GMT_Put_Vector and GMT_Write_Data #74

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

Merged
merged 2 commits into from
Nov 30, 2017
Merged

Wrap GMT_Put_Vector and GMT_Write_Data #74

merged 2 commits into from
Nov 30, 2017

Conversation

leouieda
Copy link
Member

Used to insert numpy 1d array into a GMT_Dataset and to write the dataset to a file so we can test it.

Limit write_data to output to a file only (no streams). That would be too troublesome going from Python to C and not that useful anyway.

The vectors need to be C contiguous when passed to put_vector. Can't change them inside the method because the array will be garbage collected when the method returns and the memory will be wiped. This must be done by the function calling create_data and put_vector.

Test only for catastrophic failure, not that the data is actually the
correct one. Need GMT_Write_Data for that.
@leouieda leouieda merged commit bdaabdd into master Nov 30, 2017
@leouieda leouieda deleted the put-data branch November 30, 2017 20:10
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