{ "cells": [ { "cell_type": "code", "execution_count": null, "id": "b5dc5ce7-eec1-487e-9103-6d0b1e4eaf47", "metadata": {}, "outputs": [], "source": [ "from pyrotoolbox import parse\n", "%matplotlib inline" ] }, { "cell_type": "markdown", "id": "e8715995-5351-4d87-9d11-9e8d42df28ba", "metadata": {}, "source": [ "# Workbench" ] }, { "cell_type": "code", "execution_count": null, "id": "ff563f30-00b9-4578-8e20-2773878573a5", "metadata": {}, "outputs": [], "source": [ "df, m = parse('ChannelData/A_Firesting Pro (4 Channels)_(A Ch.1)_pH.txt')" ] }, { "cell_type": "code", "execution_count": null, "id": "38d94f1d-113d-473e-ac2a-ce444056def4", "metadata": {}, "outputs": [], "source": [ "df" ] }, { "cell_type": "code", "execution_count": null, "id": "70a19001-2695-44aa-8c4e-862877fe5e1f", "metadata": {}, "outputs": [], "source": [ "df['pH'].plot()" ] }, { "cell_type": "code", "execution_count": null, "id": "b8465f1e-4609-41cd-9b97-354d94915fe9", "metadata": {}, "outputs": [], "source": [ "m" ] }, { "cell_type": "code", "execution_count": null, "id": "e3f18a7f-4b75-4936-a6c3-da49768a30d9", "metadata": {}, "outputs": [], "source": [ "m['settings']" ] }, { "cell_type": "code", "execution_count": null, "id": "fcbeb3bf-1eef-48c9-9a2e-8dcfa4b4d728", "metadata": {}, "outputs": [], "source": [ "m['calibration']" ] }, { "cell_type": "markdown", "id": "8cc9e5d8-cf2b-4fc4-8f0a-56a7486e7b65", "metadata": {}, "source": [ "# FirePlate" ] }, { "cell_type": "code", "execution_count": null, "id": "ccf5ed61-5467-4808-a97c-d32627b141df", "metadata": {}, "outputs": [], "source": [ "df, m = parse('ChannelData FirePlate/A_FirePlate-O2_(A Ch.1)_Oxygen.txt')" ] }, { "cell_type": "code", "execution_count": null, "id": "bd576d48-6040-452d-8b24-852e95205ca0", "metadata": {}, "outputs": [], "source": [ "df" ] }, { "cell_type": "code", "execution_count": null, "id": "1aeff38d-6762-4170-8078-aa6346cf2839", "metadata": {}, "outputs": [], "source": [ "df.filter(regex='%O2').plot()" ] }, { "cell_type": "code", "execution_count": null, "id": "f6562ebe-eb6e-45e1-b38a-adfe2d182a39", "metadata": {}, "outputs": [], "source": [ "m['settings']" ] }, { "cell_type": "code", "execution_count": null, "id": "34ff170a-4d1d-4d69-bb5b-7a3ce977ec88", "metadata": {}, "outputs": [], "source": [ "import pandas as pd\n", "pd.DataFrame(m['calibration'])" ] }, { "cell_type": "code", "execution_count": null, "id": "0a28da58-cc7a-4863-8721-e5116a714542", "metadata": {}, "outputs": [], "source": [] } ], "metadata": { "kernelspec": { "display_name": "Python 3 (ipykernel)", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.12.3" } }, "nbformat": 4, "nbformat_minor": 5 }