.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "auto_examples/tutorial_sys_response_ir.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_auto_examples_tutorial_sys_response_ir.py: Measuring the system response in the mid IR =========================================== In the mid-IR the system response is measured by monitoring the transmittance of the probe light through a thin semi-conductor. skultrafast has an helper function to analyze such a signal. .. GENERATED FROM PYTHON SOURCE LINES 10-17 .. code-block:: Python from skultrafast import messpy, data_io fname = data_io.get_example_path('sys_response') tz_result = messpy.get_t0(fname, display_result=False, t_range=(-2, 0.3), no_slope=False) .. image-sg:: /auto_examples/images/sphx_glr_tutorial_sys_response_ir_001.png :alt: (Model(gauss_step) + Model(linear)) :srcset: /auto_examples/images/sphx_glr_tutorial_sys_response_ir_001.png, /auto_examples/images/sphx_glr_tutorial_sys_response_ir_001_1_50x.png 1.50x, /auto_examples/images/sphx_glr_tutorial_sys_response_ir_001_2_00x.png 2.00x :class: sphx-glr-single-img .. GENERATED FROM PYTHON SOURCE LINES 18-20 Newer version of lmfit have a html representation which is used by ipython, e.g. in the notebook. Hence the line below will display the fit results. .. GENERATED FROM PYTHON SOURCE LINES 20-23 .. code-block:: Python tz_result.fit_result .. raw:: html

Fit Result

Model: (Model(gauss_step) + Model(linear))



.. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 0.287 seconds) .. _sphx_glr_download_auto_examples_tutorial_sys_response_ir.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: tutorial_sys_response_ir.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: tutorial_sys_response_ir.py ` .. container:: sphx-glr-download sphx-glr-download-zip :download:`Download zipped: tutorial_sys_response_ir.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_