lib package
Contents
lib package#
Submodules#
lib.fit module#
lib.io module#
- lib.io.get_duration(nunbers: list, labels: list, chs: list, ovs: list, ow: bool = True, debug: bool = False)[source]#
- lib.io.load_analysis(numbers: list, labels: list, ovs: list, chs: list, path: str = '/home/docs/checkouts/readthedocs.org/user_builds/ac-dc/checkouts/stable/analysis', debug: bool = False)[source]#
- lib.io.load_data(numbers: list, labels: list, ovs: list, chs: list, path: str = '/home/docs/checkouts/readthedocs.org/user_builds/ac-dc/checkouts/stable/analysis', debug: bool = False)[source]#
lib.lib module#
- lib.lib.merge_processed_files(file_list, data: str = 'DC', polarity=- 1, width: int = 3, threshold: float = 0.0, height: float = 0.001, header: int = 3, segments: int = 50, debug: bool = False)[source]#
- lib.lib.peak_finder(ADCs, period, width=3, height: float = 0.001, threshold: float = 0.0, distance: int = 20, debug: bool = False)[source]#
- lib.lib.process_file(file_path: str, data: str = 'DC', polarity: int = 1, width: int = 3, threshold: float = 0.0, height: float = 0.001, distance: int = 20, header: int = 3, segments: int = 50, debug: bool = False)[source]#
lib.ml module#
lib.plot module#
lib.style module#
- lib.style.format_coustom_plotly(fig, title=None, legend={}, fontsize=16, figsize=None, ranges=(None, None), matches=('x', 'y'), tickformat=('.s', '.s'), log=(False, False), margin={'auto': True}, add_units=False, debug=False)[source]#
Format a plotly figure
- Parameters
fig (plotly.graph_objects.Figure) – plotly figure
title (str) – title of the figure (default: None)
legend (dict) – legend options (default: dict())
fontsize (int) – font size (default: 16)
figsize (tuple) – figure size (default: None)
ranges (tuple) – axis ranges (default: (None,None))
matches (tuple) – axis matches (default: (“x”,”y”))
tickformat (tuple) – axis tick format (default: (‘.s’,’.s’))
log (tuple) – axis log scale (default: (False,False))
margin (dict) – figure margin (default: {“auto”:True,”color”:”white”,”margin”:(0,0,0,0)})
add_units (bool) – True to add units to axis labels, False otherwise (default: False)
debug (bool) – True to print debug statements, False otherwise (default: False)
- Returns
plotly figure
- Return type
fig (plotly.graph_objects.Figure)