.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "auto_examples/UV/Cary_simple.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_UV_Cary_simple.py: Simple Cary UV-Vis loading ========================== A simple demo of loading Cary UV-Vis data. This example just loads a file and plots all the spectra in a file, without embellishment Here we have a file called Pure_T177R1a_pR_210615.BSW on our computer. There are three requirements for where this file must be stored: - It **must** be stored in a folder called "proteorhodopsin" that's itself inside a folder called "UV_Vis" (as indicated by the ``exp_type`` argument). Typically, this will be achieved by just cloning/syncing the entire "UV_Vis" directory of data shared by your lab on google drive, etc, etc. - Our pyspecdata config file (``~/.pyspecdata`` on Linux/Mac or ``~/_pyspecdata`` on Windows) must know about this "UV_Vis" directory. If not, you can use the ``pyspecdata_register_dir`` command on the command line (see :func:`~pyspecdata.datadir.register_directory`). - The name of the file itself must contain the string "T177R1a_pR_210615" → note that you don't need to specify the whole file name, just enough for it to be unique. .. GENERATED FROM PYTHON SOURCE LINES 25-34 .. image-sg:: /auto_examples/UV/images/sphx_glr_Cary_simple_001.png :alt: UV data :srcset: /auto_examples/UV/images/sphx_glr_Cary_simple_001.png, /auto_examples/UV/images/sphx_glr_Cary_simple_001_2_00x.png 2.00x :class: sphx-glr-single-img .. rst-class:: sphx-glr-script-out .. code-block:: none the experiments present in this file are: dict_keys(['1:40 T177R1a pR Dilution', '1:20 T177R1a pR Dilution']) 1: UV data |||nm | .. code-block:: Python from pylab import * from pyspecdata import * data = find_file('T177R1a_pR_210615', exp_type='UV_Vis/proteorhodopsin') print("the experiments present in this file are:",data.keys()) with figlist_var() as fl: fl.next("UV data") for j in data.keys(): fl.plot(data[j], label=j, alpha=0.5) .. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 1.477 seconds) .. _sphx_glr_download_auto_examples_UV_Cary_simple.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: Cary_simple.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: Cary_simple.py ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_