Skip to content

Remove templating#159

Closed
kwohlfahrt wants to merge 14 commits intoPyWavelets:masterfrom
kwohlfahrt:templating
Closed

Remove templating#159
kwohlfahrt wants to merge 14 commits intoPyWavelets:masterfrom
kwohlfahrt:templating

Conversation

@kwohlfahrt
Copy link
Member

This removes the last bit of .src templating from the C sources. It actually comes in slightly shorter, and as a bonus means we are no longer tied to numpy-specific distutils. I've done that work already in the process of sorting out ASV, even though it turned out not to be necessary, so I'll open a PR for discussion of that once this is merged.

Kai Wohlfahrt and others added 14 commits February 11, 2016 18:31
Manually expanding them is unnecessary, and pollutes the source tree.
This makes sure any externally set state is maintained outside the relevant
section.
Prevent accidental errors from creeping in later.
Removes the templating step by adding another array to wavelets_coeffs. In
the long run the plan is to remove all templating steps from the C part.
free(NULL) and PyMem_Free(NULL) are both no-ops, so no need to check for
NULL before. The struct is also immediately free'd after, so setting the
filter pointer to NULL also provides no advantage.
This is the last of it! Actually comes in at slightly shorter than before.
@kwohlfahrt kwohlfahrt mentioned this pull request Feb 29, 2016
2 tasks
@kwohlfahrt
Copy link
Member Author

Closed in favor of #161

@kwohlfahrt kwohlfahrt closed this Feb 29, 2016
@kwohlfahrt kwohlfahrt deleted the templating branch March 7, 2016 20:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant