Coverage for pyrc\tools\__init__.py: 100%

8 statements  

« prev     ^ index     » next       coverage.py v7.14.1, created at 2026-08-03 16:07 +0200

1# ------------------------------------------------------------------------------- 

2# Copyright (C) 2026 Joel Kimmich, Tim Jourdan 

3# ------------------------------------------------------------------------------ 

4# License 

5# This file is part of PyRC, distributed under GPL-3.0-or-later. 

6# ------------------------------------------------------------------------------ 

7from pyrc.tools.errors import FixedPositionError, FixedXYError, FixedZError, HighCourantNumberError 

8 

9__all__ = ["FixedPositionError", "FixedXYError", "FixedZError", "HighCourantNumberError"] 

10 

11from pyrc.tools.functions import ( 

12 add_leading_underscore, 

13 check_type, 

14 contains_symbol, 

15 fill_none, 

16 get_nested_attribute, 

17 # sympy_sparse_matrix_to_latex, 

18 is_set, 

19 return_type, 

20 save_as_tex, 

21 seconds_to_dates, 

22 subtract_seconds_from_string, 

23 sympy_matrix_to_latex, 

24 sympy_to_tex, 

25) 

26 

27__all__.extend( 

28 [ 

29 "add_leading_underscore", 

30 "sympy_matrix_to_latex", 

31 "save_as_tex", 

32 "sympy_to_tex", 

33 # "sympy_sparse_matrix_to_latex", 

34 "is_set", 

35 "get_nested_attribute", 

36 "contains_symbol", 

37 "check_type", 

38 "return_type", 

39 "subtract_seconds_from_string", 

40 "fill_none", 

41 "seconds_to_dates", 

42 ] 

43) 

44 

45 

46from pyrc.tools.science import ( 

47 get_free_ram, 

48 get_free_ram_gb, 

49 kelvin_to_celsius, 

50 celsius_to_kelvin, 

51 build_jacobian, 

52 is_numeric, 

53 round_valid, 

54 compute_jacobian_batch, 

55 cm_to_inch, 

56) 

57 

58__all__.extend( 

59 [ 

60 "get_free_ram", 

61 "get_free_ram_gb", 

62 "kelvin_to_celsius", 

63 "celsius_to_kelvin", 

64 "build_jacobian", 

65 "is_numeric", 

66 "round_valid", 

67 "compute_jacobian_batch", 

68 "cm_to_inch", 

69 ] 

70) 

71 

72from pyrc.tools.timing import Timing, ns_to_hr_time 

73 

74__all__.extend(["Timing", "ns_to_hr_time"])