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

Add a +n option to -S to prevent saving node numbers in headers. #8592

Merged
merged 1 commit into from
Oct 4, 2024

Conversation

joa-quim
Copy link
Member

@joa-quim joa-quim commented Oct 4, 2024

The reason for this is that information is normally useless but takes up needless space when the dataset is exported to the wrappers.

Also initialized some variables to please link checker.

@joa-quim joa-quim requested a review from a team October 4, 2024 13:14
@joa-quim joa-quim merged commit 654a3bc into master Oct 4, 2024
14 of 18 checks passed
@joa-quim joa-quim deleted the triangulate_S+n branch October 4, 2024 14:35
if ((c = strchr (opt->arg, '=')) == NULL) continue;
c[0] = '\0'; /* Remove = */
n_errors += gmtlib_setparameter (GMT, opt->arg, &c[1], false);
if (!GMT->parent->external || options->option) { /* So that externals can send a NULL ptr for options. 'Internal' is not affected */
Copy link
Member

Choose a reason for hiding this comment

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

@joa-quim It seems changes in these lines cause a crash for PyGMT, likely because the options pointer is NULL in our case. Perhaps we should change this line to:

if (!GMT->parent->external || options) {

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