-
Notifications
You must be signed in to change notification settings - Fork 2
Auto-generated cython_numpy wrapper #6
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
Open
jwoillez
wants to merge
37
commits into
liberfa:master
Choose a base branch
from
jwoillez:automation
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
37 commits
Select commit
Hold shift + click to select a range
627719c
Vectorize all d2dtf() imputs.
jwoillez b815ba7
Added aper()
jwoillez f1b7ce9
Added a test for aper()
jwoillez 3209705
Postfixed all output arguments with '_out'
jwoillez 64e3068
cdef and assign all C arguments before use
jwoillez 0cdfa62
Use copy constructor array() and broadcast_arrays()...
jwoillez 9c9d296
Added *.py[cod] to ignore list
jwoillez 3dbc8f8
Initial commit of code analyzer
jwoillez 7523521
Initial commit of cython_generator
jwoillez 2a60933
Ignore erfa.pyx and erfa.c in cython_numpy_auto
jwoillez 6e653c1
Added cython_numpy_auto extension to setup.py
jwoillez bcbe709
Run test against both cython_numpy and cython_numpy_auto
jwoillez d1dcc3b
Base all classes on `object` for attribute access.
jwoillez 729d2e0
Turn `cython_numpy_auto` into a package
jwoillez b6da8b8
Use jinja2 for code generation
jwoillez 1ec74bc
Add more ctype to dtype conversions
jwoillez 940753a
Deal with empty input/output sections in doc
jwoillez 41cbfe1
Argument documentations have variable leading spaces
jwoillez 7506ff0
Deal with multidimensional C arrays
jwoillez 7bbcabb
Pointer arguments are always of input type
jwoillez 922cba1
Remove dead code: is_in(), is_out(), is_inout()
jwoillez fa3612b
Implement Return() class to use along regular arguments
jwoillez 1ebb796
Spaces between function name and opening parenthesis
jwoillez 3d35218
Add returned parameter at end of arguments list
jwoillez 0de22b9
np instead of numpy collides with c code arguments
jwoillez 763c08c
Three new jinja filters: prefix, postfix, surround
jwoillez d03c0c1
Process all ERFA functions
jwoillez c9be43e
Add eraLDBODY structure support
jwoillez 56d80ca
Use prefix, postfix, and surround in template.
jwoillez e3ccefd
Re-generate extern function signature with pointers
jwoillez e641fd4
Add returned values
jwoillez dade3e0
Functions with no inputs do not need vectorisation
jwoillez e16ff9a
Improvements for no input functions
jwoillez 080325d
Pointer arguments are actually not necessarily inputs
jwoillez 9981fb0
Deal with "Given and returned" documentation sections
jwoillez a85fcf9
Remove unwanted print statements
jwoillez c43c83c
Identify sections/subsections and process only Astronomy section
jwoillez File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,10 @@ | ||
| /build | ||
|
|
||
| .project | ||
|
|
||
| .pydevproject | ||
|
|
||
| *.py[cod] | ||
|
|
||
| cython_numpy_auto/erfa.c | ||
|
|
||
| cython_numpy_auto/erfa.pyx |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So, this is now the generated file? It should probably be moved so it doesn't clobber the manually written one already in the repo at this location.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, no. I have just improved the
cython_numpyapproach independently from the auto-generation. One of the goal was to add support foraper, one of the tricky wrapper as it has an inout parameter, and also uses this eraASTROM structure.If you want to see the auto-generated wrapper, your have to run
cython_generator.pyin thepython_numpy_autoexperiment.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok. I see, that's fine.