File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010from bisect import bisect_left
1111from collections .abc import Iterable
1212from copy import deepcopy
13+ from enum import Enum
1314from functools import cached_property
1415from inspect import signature
1516from pathlib import Path
2526)
2627
2728from rocketpy .plots .plot_helpers import show_or_save_plot
28- from rocketpy .tools import deprecated
29+ from rocketpy .tools import deprecated , from_hex_decode , to_hex_encode
2930
3031# Numpy 1.x compatibility,
3132# TODO: remove these lines when all dependencies support numpy>=2.0.0
4748}
4849EXTRAPOLATION_TYPES = {"zero" : 0 , "natural" : 1 , "constant" : 2 }
4950
51+ class SourceType (Enum ):
52+ """Enumeration of the source types for the Function class.
53+ The source can be either a callable or an array.
54+ """
55+
56+ CALLABLE = 0
57+ ARRAY = 1
5058
5159class Function : # pylint: disable=too-many-public-methods
5260 """Class converts a python function or a data sequence into an object
You can’t perform that action at this time.
0 commit comments