Debian Codegraph @

doc/intro.rst

raw
1 ------------
2 Introduction
3 ------------
4
5 Project goals
6 =============
7 The main goals for this library are:
8
9 * to be faster than the other Python-based mdf libraries
10 * to have clean and easy-to-understand code base
11 * to have minimal 3rd party dependencies
12
13 Features
14 ========
15
16 * create new mdf files from scratch
17 * append new channels
18 * read unsorted MDF v3 and v4 files
19 * read CAN and LIN bus logging files
20 * extract CAN and LIN signals from anonymous bus logging measurements
21 * filter a subset of channels from original mdf file
22 * cut measurement to specified time interval
23 * convert to different mdf version
24 * export to pandas, HDF5, Matlab (v7.3), CSV and parquet
25 * merge multiple files sharing the same internal structure
26 * read and save mdf version 4.10 files containing zipped data blocks
27 * space optimizations for saved files (no duplicated blocks)
28 * split large data blocks (configurable size) for mdf version 4
29 * full support (read, append, save) for the following map types (multidimensional array channels):
30
31 * mdf version 3 channels with CDBLOCK
32 * mdf version 4 structure channel composition
33 * mdf version 4 channel arrays with CNTemplate storage and one of the array types:
34
35 * 0 - array
36 * 1 - scaling axis
37 * 2 - look-up
38
39 * add and extract attachments for mdf version 4
40 * handle large files (for example merging two files, each with 14000 channels and 5GB size, on a RaspberryPi)
41 * extract channel data, master channel and extra channel information as `Signal` objects for unified operations with v3 and v4 files
42 * time domain operation using the `Signal` class
43
44 * pandas DataFrames are good if all the channels have the same time base
45 * a measurement will usually have channels from different sources at different rates
46 * the `Signal` class facilitates operations with such channels
47
48 * graphical interface to visualize channels and perform operations with the files
49
50 Major features not implemented (yet)
51 ====================================
52
53 * for version 3
54
55 * functionality related to sample reduction block: the sample reduction blocks are simply ignored
56
57 * for version 4
58
59 * experimental support for MDF v4.20 column oriented storage
60 * functionality related to sample reduction block: the sample reduction blocks are simply ignored
61 * handling of channel hierarchy: channel hierarchy is ignored
62 * full handling of bus logging measurements: currently only CAN and LIN bus logging are implemented with the
63 ability to *get* signals defined in the attached CAN/LIN database (.arxml or .dbc). Signals can also
64 be extracted from an anonymous bus logging measurement by providing a CAN or LIN database (.dbc or .arxml)
65 * handling of unfinished measurements (mdf 4): finalization is attempted when the file is loaded, however
66 not all the finalization steps are supported
67 * full support for remaining mdf 4 channel arrays types
68 * xml schema for MDBLOCK: most metadata stored in the comment blocks will not be available
69 * full handling of event blocks: events are transferred to the new files (in case of calling methods
70 that return new `MDF` objects) but no new events can be created
71 * channels with default X axis: the default X axis is ignored and the channel group's master channel
72 is used
73 * attachment encryption/decryption using user provided encryption/decryption functions; this is not
74 part of the MDF v4 spec and is only supported by this library
75
76
77 Dependencies
78 ============
79 `asammdf` uses the following libraries
80
81 * numpy : the heart that makes all tick
82 * numexpr : for algebraic and rational channel conversions
83 * wheel : for installation in virtual environments
84 * pandas : for DataFrame export
85 * canmatrix : to handle CAN/LIN bus logging measurements
86 * natsort
87 * lxml : for canmatrix arxml support
88 * lz4 : to speed up the disk IO performance
89 * python-dateutil : measurement start time handling
90
91 Optional dependencies needed for exports
92
93 * h5py : for HDF5 export
94 * hdf5storage : for Matlab v7.3 .mat export
95 * pyarrow : for parquet export
96 * scipy: for Matlab v4 and v5 .mat export
97
98 Other optional dependencies
99
100 * PySide6 : for GUI tool
101 * pyqtgraph : for GUI tool and Signal plotting
102 * matplotlib : as fallback for Signal plotting
103 * chardet : to detect non-standard Unicode encodings
104 * pyqtlet2 : for the GPS window
105 * isal : for faster zlib compression/decompression
106 * fsspec : access files stored in the cloud
107
108
109 Installation
110 ============
111 `asammdf` is available on
112
113 * GitHub: https://github.com/danielhrisca/asammdf/
114 * PyPI: https://pypi.org/project/asammdf/
115 * conda-forge: https://anaconda.org/conda-forge/asammdf
116
117 .. code:: python
118
119 pip install asammdf
120 # for the GUI
121 pip install asammdf[gui]
122 # or for anaconda
123 conda install -c conda-forge asammdf
124
125 In case a wheel is not present for your OS/Python versions and you
126 lack the proper compiler setup to compile the C-extension code, then
127 you can simply copy-paste the package code to your site-packages. In this
128 way the Python fallback code will be used instead of the compiled C-extension code.
129
130
131 Contributing & Support
132 ======================
133 Please have a look at the `contributing guidelines <https://github.com/danielhrisca/asammdf/blob/master/CONTRIBUTING.md>`_.
134
135 If you enjoy this library please consider making a donation to the
136 `numpy project <https://numfocus.org/donate-to-numpy>`_ or to `danielhrisca using liberapay <https://liberapay.com/danielhrisca/donate>`_.
137
138 Contributors
139 ------------
140 Thanks to all who contributed with commits to `asammdf`
141
142
143 .. raw:: html
144
145 <a href="https://github.com/danielhrisca/asammdf/graphs/contributors">
146 <img src="https://contrib.rocks/image?repo=danielhrisca/asammdf" />
147 </a>
148
149
150