{ "cells": [ { "cell_type": "markdown", "id": "fed40f0fd3844824", "metadata": {}, "source": "# Tutorial 03 - print_references and write_to_bibtex" }, { "cell_type": "markdown", "id": "dfd4976071fd641e", "metadata": {}, "source": "## Step 0: Setup the project and prepare the data" }, { "cell_type": "code", "id": "33106e7ce3bc0e4f", "metadata": { "ExecuteTime": { "end_time": "2026-06-13T20:48:28.866748500Z", "start_time": "2026-06-13T20:48:28.426770Z" } }, "source": [ "import pydpeet as eet" ], "outputs": [], "execution_count": 1 }, { "cell_type": "markdown", "id": "8eb98f78999d5815", "metadata": {}, "source": "We will use \"ERROR\" as the logging style for better readability of the notebook" }, { "cell_type": "code", "id": "b9e07b2df69ada5f", "metadata": { "ExecuteTime": { "end_time": "2026-06-13T20:48:28.876870200Z", "start_time": "2026-06-13T20:48:28.867256800Z" } }, "source": [ "eet.set_logging_style(\"ERROR\")" ], "outputs": [], "execution_count": 2 }, { "cell_type": "markdown", "id": "bfd5ca74fec243af", "metadata": {}, "source": "## Step 1: Use cite-able functions inside your own code" }, { "cell_type": "code", "id": "6af6d39e0d613abd", "metadata": { "ExecuteTime": { "end_time": "2026-06-13T20:48:32.711165Z", "start_time": "2026-06-13T20:48:28.878372900Z" } }, "source": [ "from pathlib import Path\n", "\n", "data_path = Path.cwd().parent.parent / \"res\"\n", "config = eet.ReadConfig.Neware_8_0_0_516\n", "standardized_data = eet.read(\n", " input_path=str(data_path / \"raw_data_from_cyclers\" / \"Cal_Ageing_Checkup1.xlsx\"), config=config\n", ")\n", "standardized_data.head(6)" ], "outputs": [ { "data": { "text/plain": [ " Meta_Data Step_Count \\\n", "0.0 20240201100904-CheckUp-3-7-AM23NMC00009.xlsx U... 0 \n", "1.0 None 0 \n", "2.0 None 0 \n", "3.0 None 0 \n", "4.0 None 0 \n", "5.0 None 0 \n", "\n", " Voltage[V] Current[A] Temperature[°C] Test_Time[s] \\\n", "0.0 3.5269 1.4378 27.8 0.0 \n", "1.0 3.5287 1.4398 27.8 1.0 \n", "2.0 3.5298 1.4400 27.8 2.0 \n", "3.0 3.5307 1.4400 27.8 3.0 \n", "4.0 3.5315 1.4401 27.8 4.0 \n", "5.0 3.5323 1.4401 27.8 5.0 \n", "\n", " Date_Time EIS_f[Hz] EIS_Z_Real[Ohm] EIS_Z_Imag[Ohm] EIS_DC[A] \n", "0.0 2024-02-01 10:09:04 None None None None \n", "1.0 2024-02-01 10:09:05 None None None None \n", "2.0 2024-02-01 10:09:06 None None None None \n", "3.0 2024-02-01 10:09:07 None None None None \n", "4.0 2024-02-01 10:09:08 None None None None \n", "5.0 2024-02-01 10:09:09 None None None None " ], "text/html": [ "
\n", "\n", "\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
Meta_DataStep_CountVoltage[V]Current[A]Temperature[°C]Test_Time[s]Date_TimeEIS_f[Hz]EIS_Z_Real[Ohm]EIS_Z_Imag[Ohm]EIS_DC[A]
0.020240201100904-CheckUp-3-7-AM23NMC00009.xlsx U...03.52691.437827.80.02024-02-01 10:09:04NoneNoneNoneNone
1.0None03.52871.439827.81.02024-02-01 10:09:05NoneNoneNoneNone
2.0None03.52981.440027.82.02024-02-01 10:09:06NoneNoneNoneNone
3.0None03.53071.440027.83.02024-02-01 10:09:07NoneNoneNoneNone
4.0None03.53151.440127.84.02024-02-01 10:09:08NoneNoneNoneNone
5.0None03.53231.440127.85.02024-02-01 10:09:09NoneNoneNoneNone
\n", "
" ] }, "execution_count": 3, "metadata": {}, "output_type": "execute_result" } ], "execution_count": 3 }, { "cell_type": "markdown", "id": "67548e42704919ff", "metadata": {}, "source": "## Step 2: Print references into console or save them to a bibtex file" }, { "cell_type": "code", "id": "33f562964349af74", "metadata": { "ExecuteTime": { "end_time": "2026-06-13T20:48:32.727109900Z", "start_time": "2026-06-13T20:48:32.720433900Z" } }, "source": [ "eet.print_references()" ], "outputs": [], "execution_count": 4 }, { "cell_type": "code", "id": "acb6dbd98ce9b52b", "metadata": { "ExecuteTime": { "end_time": "2026-06-13T20:48:32.732962100Z", "start_time": "2026-06-13T20:48:32.727109900Z" } }, "source": [ "eet.write_to_bibtex(str(data_path / \"references\" / \"Tutorial_03.bib\"))" ], "outputs": [], "execution_count": 5 } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 2 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython2", "version": "2.7.6" } }, "nbformat": 4, "nbformat_minor": 5 }