Skip to content

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.

2 participants