diff --git a/.deepnote/id-resolver.json b/.deepnote/id-resolver.json new file mode 100644 index 0000000000000000000000000000000000000000..55898b7928e43a1d1a0debb6a3d9021f725ff437 --- /dev/null +++ b/.deepnote/id-resolver.json @@ -0,0 +1 @@ +[{"id":"9e66f3ca-8d97-4432-acd6-cb588bd924a7","path":"/init.ipynb"},{"id":"2a833435-1e0f-4acd-b4e2-0fd6060cfaa6","path":"/notebook.ipynb"},{"id":"c6a6e024-6fa3-445b-b56d-1f6b4c120557","path":"/medicion-de-la-vida-media-del-muon/Datos"},{"id":"afb8e91f-0294-47f1-af43-a3ff9d7d12df","path":"/medicion-de-la-vida-media-del-muon/init.ipynb"},{"id":"d5132bf2-3338-4402-9b87-b40739bd1707","path":"/medicion-de-la-vida-media-del-muon/.init.ipynb.swp"},{"id":"60c8be69-d4d1-41d5-8050-60f518c1251a","path":"/medicion-de-la-vida-media-del-muon/output.txt"},{"id":"948ec22a-09a3-40ec-9c22-adfcefeafa8a","path":"/medicion-de-la-vida-media-del-muon/history.txt"},{"id":"31276dfc-f085-4d35-86d8-1e29c1ead544","path":"/medicion-de-la-vida-media-del-muon/QuarknetData/sipm_qn_2020_06_22_09_00.txt"},{"id":"e6e4365e-30c3-4d80-a1eb-86b798e183e6","path":"/medicion-de-la-vida-media-del-muon/requirements.txt"},{"id":"544c972d-c699-43f4-9e44-0fe8ffbe6e34","path":"/requirements.txt"},{"id":"0a38ee9d-aef2-4715-afa2-9f80f04b8429","path":"/vida_media_muon.ipynb"},{"id":"a4512139-5f72-415c-83f2-ddd566b08ece","path":"/temporizador.sh"},{"id":"da0045a6-0cea-40d7-a9f0-cb8b12995b31","path":"/SomeFile.txt"},{"id":"6b9a4932-c322-4325-8c68-a27ba7645dfc","path":"/README.md"},{"id":"dd6a8e2d-4f62-4b34-9acf-93ab72132f37","path":"/QuarknetData.zip"},{"id":"3567bb21-5922-484a-be13-30f76a7490a2","path":"/QuarknetData"},{"id":"64af8762-101e-406b-99e5-c1675886df2e","path":"/img"},{"id":"c6a8e8d4-a753-4980-aefa-b7ada1d01c6c","path":"/Data"},{"id":"85f436bb-cd04-48e7-96e4-1e51314e355f","path":"/.git"}] \ No newline at end of file diff --git a/img/HT-CE_Comand.png b/img/HT-CE_Comand.png new file mode 100644 index 0000000000000000000000000000000000000000..ac7c100e120b653bc1414fa08f4df65bbd0c1c9c Binary files /dev/null and b/img/HT-CE_Comand.png differ diff --git a/img/TH-ST_DS_Comands.png b/img/TH-ST_DS_Comands.png new file mode 100644 index 0000000000000000000000000000000000000000..5ea962fded90b4c70cd476db0375496221dd80b6 Binary files /dev/null and b/img/TH-ST_DS_Comands.png differ diff --git a/init.ipynb b/init.ipynb new file mode 100644 index 0000000000000000000000000000000000000000..d9b3315e06f10cc4687995b1483c3a703fc1b608 --- /dev/null +++ b/init.ipynb @@ -0,0 +1,69 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "source": "## Initialization Notebook\nThis is your initialization notebook.\n\n**What's this for?**\n\nYou can put custom code you want us to run every time we setup your environment in here. \n\n**Awesome! Anything I should not put in here?**\n\nPlease don't install `jupyter` or `jedi` packages, they would break your Deepnote environment. Also, no need to put `!pip install`s here, we already save those automatically!\n\n**I want to learn more!**\n\nGreat! Just [head over to our docs](https://docs.deepnote.com/environment/custom-initialization).", + "metadata": { + "tags": [], + "cell_id": "643505f8-37e8-4a86-b1e0-eaa5d214dd55", + "deepnote_cell_type": "markdown", + "deepnote_cell_height": 349.125 + } + }, + { + "cell_type": "code", + "metadata": { + "tags": [], + "cell_id": "00001-4de1ad5f-6bf5-48f0-a42f-b2e461cc3972", + "deepnote_to_be_reexecuted": false, + "source_hash": "60b37886", + "execution_start": 1652811382772, + "execution_millis": 3989, + "deepnote_cell_type": "code", + "deepnote_cell_height": 363.3125 + }, + "source": "%%bash\n# If your project has a 'requirements.txt' file, we'll install it here apart from blacklisted packages that interfere with Deepnote (see above).\nif test -f requirements.txt\n then\n sed -i '/jedi/d;/jupyter/d;' ./requirements.txt\n pip install -r ./requirements.txt\n else echo \"There's no requirements.txt, so nothing to install. This is the case with most projects.\"\nfi", + "execution_count": 5, + "outputs": [ + { + "name": "stdout", + "text": "Requirement already satisfied: pandas in /shared-libs/python3.7/py/lib/python3.7/site-packages (from -r ./requirements.txt (line 1)) (1.2.5)\nRequirement already satisfied: numpy>=1.16.5 in /shared-libs/python3.7/py/lib/python3.7/site-packages (from pandas->-r ./requirements.txt (line 1)) (1.21.6)\nRequirement already satisfied: python-dateutil>=2.7.3 in /shared-libs/python3.7/py-core/lib/python3.7/site-packages (from pandas->-r ./requirements.txt (line 1)) (2.8.2)\nRequirement already satisfied: pytz>=2017.3 in /shared-libs/python3.7/py/lib/python3.7/site-packages (from pandas->-r ./requirements.txt (line 1)) (2022.1)\nRequirement already satisfied: six>=1.5 in /shared-libs/python3.7/py-core/lib/python3.7/site-packages (from python-dateutil>=2.7.3->pandas->-r ./requirements.txt (line 1)) (1.16.0)\nWARNING: You are using pip version 20.1.1; however, version 22.1 is available.\nYou should consider upgrading via the '/root/venv/bin/python -m pip install --upgrade pip' command.\n", + "output_type": "stream" + } + ] + }, + { + "cell_type": "code", + "source": "", + "metadata": { + "cell_id": "662bd0f8ead24e9cbbe56b83574b2b46", + "tags": [], + "deepnote_to_be_reexecuted": false, + "source_hash": "b623e53d", + "execution_start": 1652811199199, + "owner_user_id": "56eb99f4-efa9-44a6-ad33-7e017903eb34", + "deepnote_cell_type": "code", + "deepnote_cell_height": 81 + }, + "outputs": [], + "execution_count": 1 + }, + { + "cell_type": "markdown", + "source": "<a style='text-decoration:none;line-height:16px;display:flex;color:#5B5B62;padding:10px;justify-content:end;' href='https://deepnote.com?utm_source=created-in-deepnote-cell&projectId=d1ecef00-975c-40b9-b3ac-89c2c8655449' target=\"_blank\">\n<img alt='Created in deepnote.com' style='display:inline;max-height:16px;margin:0px;margin-right:7.5px;' src='data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3a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cxNzk1LDQ5LjIxMjIyODQgMjUuNjIzOTg0Niw0OS4yMTIyMjg0IEMyNS40ODQ5Mjg5LDQ5LjEyNjg0NDggMjkuODI2MTI5Niw0My4yODM4MjQ4IDM4LjY0NzU4NjksMzEuNjgzMTY4MyBMNzIuODcxMjg3MSwzMi41NTQ0MjUgTDY1LjI4MDk3Myw2Ny42NzYzNDIxIEw1MS4xMTIyODk5LDc3LjM3NjE0NCBMMzUuMDA3NzE4LDgwIFoiIGlkPSJQYXRoLTIyIiBmaWxsPSIjMDAyODY4Ij48L3BhdGg+CiAgICAgICAgICAgICAgICA8cGF0aCBkPSJNMCwzNy43MzA0NDA1IEwyNy4xMTQ1MzcsMC4yNTcxMTE0MzYgQzYyLjM3MTUxMjMsLTEuOTkwNzE3MDEgODAsMTAuNTAwMzkyNyA4MCwzNy43MzA0NDA1IEM4MCw2NC45NjA0ODgyIDY0Ljc3NjUwMzgsNzkuMDUwMzQxNCAzNC4zMjk1MTEzLDgwIEM0Ny4wNTUzNDg5LDc3LjU2NzA4MDggNTMuNDE4MjY3Nyw3MC4zMTM2MTAzIDUzLjQxODI2NzcsNTguMjM5NTg4NSBDNTMuNDE4MjY3Nyw0MC4xMjg1NTU3IDM2LjMwMzk1NDQsMzcuNzMwNDQwNSAyNS4yMjc0MTcsMzcuNzMwNDQwNSBDMTcuODQzMDU4NiwzNy43MzA0NDA1IDkuNDMzOTE5NjYsMzcuNzMwNDQwNSAwLDM3LjczMDQ0MDUgWiIgaWQ9IlBhdGgtMTkiIGZpbGw9IiMzNzkzRUYiPjwvcGF0aD4KICAgICAgICAgICAgPC9nPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+' > </img>\nCreated in <span style='font-weight:600;margin-left:4px;'>Deepnote</span></a>", + "metadata": { + "tags": [], + "created_in_deepnote_cell": true, + "deepnote_cell_type": "markdown" + } + } + ], + "nbformat": 4, + "nbformat_minor": 2, + "metadata": { + "orig_nbformat": 2, + "deepnote": {}, + "deepnote_notebook_id": "9e66f3ca-8d97-4432-acd6-cb588bd924a7", + "deepnote_execution_queue": [] + } +} \ No newline at end of file diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000000000000000000000000000000000000..1411a4a0b5ab886adfb744e685d150151ab10023 --- /dev/null +++ b/requirements.txt @@ -0,0 +1 @@ +pandas \ No newline at end of file diff --git a/vida_media_muon.ipynb b/vida_media_muon.ipynb index ecbb44223522fb28ef9e09d63f99f4fe388bbf71..43919a2a82f2fc45362f8f29fe448d80ab01ecde 100644 --- a/vida_media_muon.ipynb +++ b/vida_media_muon.ipynb @@ -43,8 +43,8 @@ "deepnote_cell_height": 81 }, "source": "#!source temporizador.sh", - "execution_count": 1, - "outputs": [] + "outputs": [], + "execution_count": null }, { "cell_type": "code", @@ -59,17 +59,17 @@ "deepnote_cell_height": 189 }, "source": "import numpy as np\nimport pandas as pd\nimport matplotlib.pyplot as plt\nfrom scipy import stats\nfrom scipy.stats import expon\nfrom statistics import variance\nfrom statistics import mean", - "execution_count": 2, - "outputs": [] + "outputs": [], + "execution_count": null }, { "cell_type": "markdown", - "source": "Glosario:\n1. \"mBar\"\n2. \"GpsDegC\"\n3. \"1ppsDly\"\n4. \"CPU_Vcc\"\n5. \"GpsUTC\"\n6. \"GpsDate\"\n7. \"GpsVld\"\n8. \"GpsSat#\"\n9. \"1ppsTime\"\n10. \"CodeVer\"\n11. \"SerNum\"\n12. \"TMCregs\"\n13. \"Cntlregs\"", + "source": "\n", "metadata": { "cell_id": "186bee6a82654bcfac5bcc0acfaef262", "tags": [], "deepnote_cell_type": "markdown", - "deepnote_cell_height": 407.46875 + "deepnote_cell_height": 1019 } }, { @@ -88,11 +88,11 @@ "sortBy": [] }, "deepnote_table_loading": false, + "owner_user_id": "56eb99f4-efa9-44a6-ad33-7e017903eb34", "deepnote_cell_type": "code", "deepnote_cell_height": 448 }, "source": "data = pd.read_table('QuarknetData/sipm_qn_2020_06_21_21_00.txt', delimiter = ' ', dtype=str, header=None, names=[\"Command\",\"mBar\", \"GpsDegC\", \"1ppsDly\", \"CPU_Vcc\", \"GpsUTC\",\"GpsDate\", \"GpsVld\", \"GpsSat#\",\"1ppsTime\", \"CodeVer\", \"SerNum\",\"TMCregs\", \"Cntlregs\"]) #, 'Ch0Cnts', 'Ch1Cnts', 'Ch2Cnts', 'Ch3Cnts', 'TrigCnts'])\ndata.set_index('Command',inplace = True)\ndata.head()", - "execution_count": 3, "outputs": [ { "output_type": "execute_result", @@ -457,7 +457,8 @@ }, "metadata": {} } - ] + ], + "execution_count": null }, { "cell_type": "code", @@ -475,7 +476,6 @@ ] }, "source": "'''a,b = data.shape\nmatrix = np.zeros((a,b))\nfor i in range(a):\n if data.iloc[i,0] == 'DS':\n for j in range(4):\n matrix[i][j+1] = int(data.iloc[i,j+1],base = 16)\n elif data.iloc[i,0] == 'ST':\n for j in range(b-1):\n matrix[i][j+1] = int(data.iloc[i,j+1],base = 16)\ndf = pd.DataFrame(matrix, index = data.index, columns=data.columns)\ndf.head()'''", - "execution_count": 4, "outputs": [ { "output_type": "execute_result", @@ -485,7 +485,8 @@ }, "metadata": {} } - ] + ], + "execution_count": null }, { "cell_type": "code", @@ -500,7 +501,6 @@ "deepnote_cell_height": 797 }, "source": "a,b = data.shape\nmatrix = np.zeros((a,b))\nfor i in range(a):\n if data.index[i] == 'DS':\n for j in range(5):\n matrix[i][j] = int(data.iloc[i,j],base = 16)\n else:\n for j in range(b):\n matrix[i][j] = int(data.iloc[i,j],base = 16)\ndf = pd.DataFrame(matrix, index = data.index, columns=data.columns)\ndf.head(-1)", - "execution_count": 5, "outputs": [ { "output_type": "execute_result", @@ -1489,7 +1489,8 @@ }, "metadata": {} } - ] + ], + "execution_count": null }, { "cell_type": "code", @@ -1507,7 +1508,6 @@ ] }, "source": "int('A',base=16)", - "execution_count": 6, "outputs": [ { "output_type": "execute_result", @@ -1517,7 +1517,8 @@ }, "metadata": {} } - ] + ], + "execution_count": null }, { "cell_type": "markdown", @@ -1546,7 +1547,6 @@ ] }, "source": "from scipy.optimize import curve_fit\n\ndef exp(x,A0, B0, C0):\n return C0 + A0*np.exp(-x/B0)\n\nx1=np.linspace(0,15,500)\ny1=exp(x1,4,0.3,2)+np.sin(x1)\nparametros, covariance = curve_fit(exp, x1, y1)\n\nprint(parametros)\n\nplt.figure(figsize=(6, 4))\nplt.scatter(x1, y1, label='Data')\nplt.plot(x1, exp(x1,parametros[0],parametros[1],parametros[2]),'r',label='Fitted function')\nplt.legend(loc='best')\nplt.show()", - "execution_count": 7, "outputs": [ { "name": "stdout", @@ -1567,7 +1567,8 @@ }, "output_type": "display_data" } - ] + ], + "execution_count": null }, { "cell_type": "code", @@ -1606,8 +1607,8 @@ "deepnote_cell_height": 135 }, "source": "import numpy as np\nimport scipy.stats as ss\nimport matplotlib.pyplot as plt\n%matplotlib inline", - "execution_count": 8, - "outputs": [] + "outputs": [], + "execution_count": null }, { "cell_type": "code", @@ -1623,7 +1624,7 @@ "deepnote_cell_height": 99 }, "outputs": [], - "execution_count": 9 + "execution_count": null }, { "cell_type": "code", @@ -1645,7 +1646,7 @@ "output_type": "stream" } ], - "execution_count": 10 + "execution_count": null }, { "cell_type": "code", @@ -1657,12 +1658,11 @@ "source_hash": "4a553ed7", "execution_start": 1652799859159, "execution_millis": 381, - "owner_user_id": "56eb99f4-efa9-44a6-ad33-7e017903eb34", "deepnote_cell_type": "code", "deepnote_cell_height": 135 }, "outputs": [], - "execution_count": 11 + "execution_count": null }, { "cell_type": "code", @@ -1697,7 +1697,7 @@ "output_type": "display_data" } ], - "execution_count": 12 + "execution_count": null }, { "cell_type": "markdown",