Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Adding examples (full-working)#218

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed
tdegeus wants to merge1 commit intoxtensor-stack:masterfromtdegeus:docs
Closed

Adding examples (full-working)#218

tdegeus wants to merge1 commit intoxtensor-stack:masterfromtdegeus:docs

Conversation

tdegeus
Copy link
Member

@tdegeustdegeus commentedNov 9, 2019
edited
Loading

I'm starting adding some full-working examples to the docs. At first I will implement the strategies described by@JohanMabillehere

I'm still having trouble getting the first example working, in particular theCMakeLists.txt is apparently insufficient as~/miniconda3/envs/test/include/xtensor-python/pycontainer.hpp:28:10: fatal error: 'numpy/arrayobject.h' file not found

Thereafter it would be good to hear your opinions on what kind of examples to include@wolfv@JohanMabille@SylvainCorlay. If you agree I would probably include building the example in the CI.

@wolfv
Copy link
Member

Cool! If you use this CMake file here:https://github.com/xtensor-stack/xtensor-python/blob/master/cmake/FindNumPy.cmake

I think it should help in finding the include directory for the NumPy headers.

@tdegeus
Copy link
MemberAuthor

tdegeus commentedNov 11, 2019
edited
Loading

Thanks@wolfv . By default my cmake does not find theFindNumPy.cmake when I installxtensor-python with conda. I.e. with

find_package(NumPyREQUIRED)

I get

CMake Warning at CMakeLists.txt:9 (find_package):  By not providing"FindNumPy.cmake"in CMAKE_MODULE_PATH this project has  asked CMake to find a package configuration file provided by"NumPy", but  CMake did not find one.  Could not find a package configuration file provided by"NumPy" with any of  the following names:    NumPyConfig.cmake    numpy-config.cmake  Add the installation prefix of"NumPy" to CMAKE_PREFIX_PATH orset"NumPy_DIR" to a directory containing one of the above files.  If"NumPy"  provides a separate development package or SDK, be sure it has been  installed.

@tdegeus
Copy link
MemberAuthor

Integrated in#256

@tdegeustdegeus deleted the docs branchMay 18, 2021 15:09
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@tdegeus@wolfv

[8]ページ先頭

©2009-2025 Movatter.jp