Hide keyboard shortcuts

Hot-keys on this page

r m x p   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

32

33

34

35

36

37

38

""" 

Package for specific algorithms and time-intensive routines. 

""" 

# flake8: noqa 

from lingpy.settings import rcParams 

from lingpy.algorithm.clustering import * 

from lingpy.algorithm._tree import _TreeDist as TreeDist 

 

cmod = {} 

# check for c-modules 

try: 

from .cython import calign as calign 

except ImportError: 

from .cython import _calign as calign 

cmod['calign'] = 1 

 

try: 

from .cython import malign as malign 

except ImportError: 

from .cython import _malign as malign 

cmod['malign'] = 1 

 

try: 

from .cython import talign as talign 

except: 

from .cython import _talign as talign 

cmod['talign'] = 1 

 

try: 

from .cython import misc as misc 

except: 

from .cython import _misc as misc 

cmod['misc'] = 1 

 

rcParams['cmodules'] = not bool(cmod) 

 

# define squareform for global lingpy-applications 

squareform = misc.squareform