-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change fpoly imported module if fortran lib is present or not.
- Loading branch information
Showing
1 changed file
with
31 additions
and
0 deletions.
There are no files selected for viewing
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,31 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
# This file is part of eastereig, a library to locate exceptional points | ||
# and to reconstruct eigenvalues loci. | ||
|
||
# Eastereig is free software: you can redistribute it and/or modify | ||
# it under the terms of the GNU General Public License as published by | ||
# the Free Software Foundation, either version 3 of the License, or | ||
# (at your option) any later version. | ||
|
||
# Eastereig is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU General Public License for more details. | ||
|
||
# You should have received a copy of the GNU General Public License | ||
# along with Eastereig. If not, see <https://www.gnu.org/licenses/>. | ||
|
||
""" | ||
Select the the good polynomial module (fast fortran full python fallback version). | ||
Neither `_fpolyval_full_py.py`, nor `_fpolyval.cpython-xxx.so` | ||
are supposed to be imported directly. One must use the `fpoly` module. | ||
See README for installation details. | ||
""" | ||
try: | ||
# Fortran version | ||
from ._fpoly import polyvalnd | ||
except ImportError: | ||
# Python fallback version | ||
from ._fpolyval_full_py import polyvalnd |