.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "tutorial-config/eg_03_quick_configuration.py" .. LINE NUMBERS ARE GIVEN BELOW. .. only:: html .. note:: :class: sphx-glr-download-link-note Click :ref:`here ` to download the full example code .. rst-class:: sphx-glr-example-title .. _sphx_glr_tutorial-config_eg_03_quick_configuration.py: Quick configuration ^^^^^^^^^^^^^^^^^^^ If no configuration is passed, the quick processing functions in resistics will use the default configuration. However, it is possible to use a different configuration if preferred. The dataset in this example has been provided for use by the SAMTEX consortium. For more information, please refer to [Jones2009]_. Additional details about the dataset can be found at https://www.mtnet.info/data/kap03/kap03.html. .. GENERATED FROM PYTHON SOURCE LINES 13-22 .. code-block:: default from pathlib import Path import seedir as sd import plotly import resistics.letsgo as letsgo from resistics.config import Configuration from resistics.time import InterpolateNans, RemoveMean, Multiply from resistics.decimate import DecimationSetup from resistics.window import WindowerTarget .. GENERATED FROM PYTHON SOURCE LINES 23-24 Define the data path. This is dependent on where the data is stored. .. GENERATED FROM PYTHON SOURCE LINES 24-27 .. code-block:: default time_data_path = Path("..", "..", "data", "time", "quick", "kap123") sd.seedir(str(time_data_path), style="emoji") .. rst-class:: sphx-glr-script-out Out: .. code-block:: none 📁 kap123/ ├─📄 data.npy └─📄 metadata.json .. GENERATED FROM PYTHON SOURCE LINES 28-29 Quick calculation of the transfer function using default parameters. .. GENERATED FROM PYTHON SOURCE LINES 29-42 .. code-block:: default soln_default = letsgo.quick_tf(time_data_path) fig = soln_default.tf.plot( soln_default.freqs, soln_default.components, to_plot=["ExHy", "EyHx"], x_lim=[1, 5], res_lim=[0, 4], legend="Default config", symbol="circle", ) fig.update_layout(height=800) plotly.io.show(fig) .. raw:: html :file: images/sphx_glr_eg_03_quick_configuration_001.html .. rst-class:: sphx-glr-script-out Out: .. code-block:: none 0%| | 0/20 [00:00` .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: eg_03_quick_configuration.ipynb ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_