-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix access to rascaline-torch cmake_prefix_path from Python
- Loading branch information
Showing
5 changed files
with
20 additions
and
27 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains 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,4 +1,13 @@ | ||
import os | ||
|
||
from .power_spectrum import PowerSpectrum | ||
|
||
|
||
_HERE = os.path.dirname(__file__) | ||
|
||
cmake_prefix_path = os.path.realpath(os.path.join(_HERE, "..", "lib", "cmake")) | ||
""" | ||
Path containing the CMake configuration files for the underlying C library | ||
""" | ||
|
||
__all__ = ["PowerSpectrum"] |
This file contains 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
This file contains 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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import os | ||
|
||
import rascaline.torch | ||
|
||
|
||
def test_cmake_prefix(): | ||
assert os.path.exists(rascaline.torch.utils.cmake_prefix_path) |
This file contains 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