Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openstructure
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
schwede
openstructure
Commits
eb2a9384
Commit
eb2a9384
authored
5 years ago
by
Bienchen
Browse files
Options
Downloads
Patches
Plain Diff
SCHWED-4612: Reduce Numpy compilation warnings
parent
ff5e49cd
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/mol/base/pymod/export_editors.cc
+9
-0
9 additions, 0 deletions
modules/mol/base/pymod/export_editors.cc
with
9 additions
and
0 deletions
modules/mol/base/pymod/export_editors.cc
+
9
−
0
View file @
eb2a9384
...
...
@@ -29,7 +29,15 @@ using namespace boost::python;
using
namespace
ost
;
using
namespace
ost
::
mol
;
/* Including NumPy headers produces compiler warnings. The ones about "Using
deprecated NumPy API..." we can not get rid of. The highest NumPy version we
support is 1.6 while the non-deprecated API starts with version 1.7.
Also see the comment in modules/gfx/pymod/export_primlist.cc for further
information.
*/
#if OST_NUMPY_SUPPORT_ENABLED
#include
<numpy/numpyconfig.h>
#define NPY_NO_DEPRECATED_API NPY_1_6_API_VERSION
#include
<numpy/arrayobject.h>
#endif
...
...
@@ -228,6 +236,7 @@ void export_Editors()
{
#if OST_NUMPY_SUPPORT_ENABLED
// The following define enforces no return value when calling import_array
#undef NUMPY_IMPORT_ARRAY_RETVAL
#define NUMPY_IMPORT_ARRAY_RETVAL
import_array
();
#endif
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment