Coverage for pyrc \ tools \ __init__.py: 100%
10 statements
« prev ^ index » next coverage.py v7.13.5, created at 2026-04-13 16:59 +0200
« prev ^ index » next coverage.py v7.13.5, created at 2026-04-13 16:59 +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
9__all__ = ["FixedPositionError", "FixedXYError", "FixedZError", "HighCourantNumberError"]
11from pyrc.tools.functions import (
12 add_leading_underscore,
13 sympy_matrix_to_latex,
14 save_as_tex,
15 sympy_to_tex,
16 sympy_sparse_matrix_to_latex,
17 is_set,
18 get_nested_attribute,
19 contains_symbol,
20 check_type,
21 return_type,
22 subtract_seconds_from_string,
23 fill_none,
24)
26__all__.extend(
27 [
28 "add_leading_underscore",
29 "sympy_matrix_to_latex",
30 "save_as_tex",
31 "sympy_to_tex",
32 "sympy_sparse_matrix_to_latex",
33 "is_set",
34 "get_nested_attribute",
35 "contains_symbol",
36 "check_type",
37 "return_type",
38 "subtract_seconds_from_string",
39 "fill_none",
40 ]
41)
43from pyrc.tools.plotting import custom_numeric_ticks_formatter, format_date_x_axis
45__all__.extend(["custom_numeric_ticks_formatter", "format_date_x_axis"])
47from pyrc.tools.science import (
48 get_free_ram,
49 get_free_ram_gb,
50 kelvin_to_celsius,
51 celsius_to_kelvin,
52 build_jacobian,
53 is_numeric,
54 round_valid,
55 compute_jacobian_batch,
56 cm_to_inch,
57)
59__all__.extend(
60 [
61 "get_free_ram",
62 "get_free_ram_gb",
63 "kelvin_to_celsius",
64 "celsius_to_kelvin",
65 "build_jacobian",
66 "is_numeric",
67 "round_valid",
68 "compute_jacobian_batch",
69 "cm_to_inch",
70 ]
71)
73from pyrc.tools.timing import Timing, ns_to_hr_time
74__all__.extend(["Timing","ns_to_hr_time"])