| 1 |
.. raw:: html |
| 2 |
|
| 3 |
<style> .red {color:red} </style> |
| 4 |
<style> .blue {color:blue} </style> |
| 5 |
<style> .green {color:green} </style> |
| 6 |
<style> .cyan {color:cyan} </style> |
| 7 |
<style> .magenta {color:magenta} </style> |
| 8 |
<style> .orange {color:orange} </style> |
| 9 |
<style> .brown {color:brown} </style> |
| 10 |
|
| 11 |
.. role:: red |
| 12 |
.. role:: blue |
| 13 |
.. role:: green |
| 14 |
.. role:: cyan |
| 15 |
.. role:: magenta |
| 16 |
.. role:: orange |
| 17 |
.. role:: brown |
| 18 |
.. default-role:: py:obj |
| 19 |
|
| 20 |
--- |
| 21 |
API |
| 22 |
--- |
| 23 |
|
| 24 |
MDF |
| 25 |
=== |
| 26 |
|
| 27 |
This class acts as a proxy for the `MDF2`, `MDF3` and `MDF4` classes. |
| 28 |
All attribute access is delegated to the underlying `_mdf` attribute (MDF2, MDF3 or MDF4 object). |
| 29 |
See MDF3 and MDF4 for available extra methods (MDF2 and MDF3 share the same implementation). |
| 30 |
|
| 31 |
An empty MDF file is created if the `name` argument is not provided. |
| 32 |
If the `name` argument is provided then the file must exist in the filesystem, otherwise an exception is raised. |
| 33 |
|
| 34 |
The best practice is to use the `MDF` as a context manager. This way all resources are released correctly in case of exceptions. |
| 35 |
|
| 36 |
.. code:: |
| 37 |
|
| 38 |
with MDF(r'test.mdf') as mdf_file: |
| 39 |
# do something |
| 40 |
|
| 41 |
|
| 42 |
.. autoclass:: asammdf.mdf.MDF |
| 43 |
:members: |
| 44 |
|
| 45 |
|
| 46 |
MDF3 |
| 47 |
==== |
| 48 |
|
| 49 |
.. autoclass:: asammdf.blocks.mdf_v3.MDF3 |
| 50 |
:members: |
| 51 |
:noindex: |
| 52 |
|
| 53 |
MDF version 2 & 3 blocks |
| 54 |
------------------------ |
| 55 |
|
| 56 |
.. toctree:: |
| 57 |
:maxdepth: 2 |
| 58 |
|
| 59 |
v2v3blocks |
| 60 |
|
| 61 |
|
| 62 |
MDF4 |
| 63 |
==== |
| 64 |
|
| 65 |
.. autoclass:: asammdf.blocks.mdf_v4.MDF4 |
| 66 |
:members: |
| 67 |
:noindex: |
| 68 |
|
| 69 |
MDF version 4 blocks |
| 70 |
-------------------- |
| 71 |
|
| 72 |
.. toctree:: |
| 73 |
:maxdepth: 2 |
| 74 |
|
| 75 |
v4blocks |
| 76 |
|
| 77 |
|
| 78 |
Signal |
| 79 |
====== |
| 80 |
|
| 81 |
.. autoclass:: asammdf.signal.Signal |
| 82 |
:members: |