.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "_examples/06_eit_fzj/plot_eit_fzj_testboard_check.py" .. LINE NUMBERS ARE GIVEN BELOW. .. only:: html .. note:: :class: sphx-glr-download-link-note :ref:`Go to the end ` to download the full example code. .. rst-class:: sphx-glr-example-title .. _sphx_glr__examples_06_eit_fzj_plot_eit_fzj_testboard_check.py: EIT40 Testboard V2 ------------------ This example shows how to execute the helper function "testboard_evaluation" from the eit_fzj_utils. It is used to plot the results of measurements conducted on the testboard that was built to check the functionality of the eit systems. A theoretical calculated response that is based on the built-in resistors and capicitors is plotted together with the measurement results. .. GENERATED FROM PYTHON SOURCE LINES 13-40 .. image-sg:: /_examples/06_eit_fzj/images/sphx_glr_plot_eit_fzj_testboard_check_001.png :alt: Magnitude a:1 b:4 m:2 n:3, Phase a:1 b:4 m:2 n:3, Magnitude a:5 b:8 m:6 n:7, Phase a:5 b:8 m:6 n:7 :srcset: /_examples/06_eit_fzj/images/sphx_glr_plot_eit_fzj_testboard_check_001.png :class: sphx-glr-single-img .. rst-class:: sphx-glr-script-out .. code-block:: none Configs were provided a ndarray Constructing four-point measurements Adding column Zg from MD Adding column Iab from MD Adding column Ileakage from MD Summary: a b m ... r frequency rpha count 92.000000 92.000000 92.000000 ... 92.000000 92.000000 92.000000 mean 3.500000 5.500000 3.500000 ... 1495.079488 1411.945427 -103.775425 std 2.072849 2.072849 2.072849 ... 349.615040 2499.461903 60.876602 min 1.000000 3.000000 1.000000 ... 1009.722262 0.100000 -203.176382 25% 1.750000 3.750000 1.750000 ... 1191.964147 3.125000 -158.334102 50% 3.500000 5.500000 3.500000 ... 1499.604785 175.000000 -101.997050 75% 5.250000 7.250000 5.250000 ... 1894.325500 1450.000000 -53.526973 max 6.000000 8.000000 6.000000 ... 2021.093567 10000.000000 -4.632527 [8 rows x 7 columns] (
, ) | .. code-block:: Python import reda import numpy as np # A config with the used channels/configurations has to be put in. This can be # a numpy array or a config.dat-file. It is important that normal and # reciprocal measurements are taken for the check. configs = np.array([ [1, 4, 2, 3], [2, 3, 1, 4], [5, 8, 6, 7], [6, 7, 5, 8] ]) # The function can be executed with the following command. The first parameter # has to lead to the datapath of the measurement, the second to the config.dat # or config array and the third one denotes the output name. Optional # parameters are the frequency range to compare the measurements to # (input has to be in log10-space) and the error-percentage of the # measurements. reda.utils.eit_fzj_utils.testboard_evaluation( "data_eit_fzj_testboard/eit_data_mnu0.mat", configs, 'data_eit_fzj_testboard/testboard' ) .. _sphx_glr_download__examples_06_eit_fzj_plot_eit_fzj_testboard_check.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: plot_eit_fzj_testboard_check.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: plot_eit_fzj_testboard_check.py ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_