Coverage for src/foapy/characteristics/ma/__init__.py: 85%

18 statements  

« prev     ^ index     » next       coverage.py v7.8.0, created at 2025-05-17 20:45 +0000

1import sys 

2 

3# We first need to detect if we're being called as part of the numpy setup 

4# procedure itself in a reliable manner. 

5try: 

6 __FOAPY_SETUP__ 

7except NameError: 

8 __FOAPY_SETUP__ = False 

9 

10if __FOAPY_SETUP__: 10 ↛ 11line 10 didn't jump to line 11 because the condition on line 10 was never true

11 sys.stderr.write("Running from foapy.characteristics.ma source directory.\n") 

12else: 

13 from ._arithmetic_mean import arithmetic_mean # noqa: F401 

14 from ._average_remoteness import average_remoteness # noqa: F401 

15 from ._depth import depth # noqa: F401 

16 from ._geometric_mean import geometric_mean # noqa: F401 

17 from ._identifying_information import identifying_information # noqa: F401 

18 from ._periodicity import periodicity # noqa: F401 

19 from ._uniformity import uniformity # noqa: F401 

20 from ._volume import volume # noqa: F401 

21 

22 __all__ = list( 

23 { 

24 "volume", 

25 "arithmetic_mean", 

26 "geometric_mean", 

27 "average_remoteness", 

28 "depth", 

29 "identifying_information", 

30 "periodicity", 

31 "uniformity", 

32 } 

33 ) 

34 

35 def __dir__(): 

36 return __all__