Skip to content

Commit

Permalink
deploy: a3a01a2
Browse files Browse the repository at this point in the history
  • Loading branch information
oscgonfer committed Oct 24, 2024
1 parent 563614a commit 9437ddf
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 56 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,40 +8,26 @@
"# CO2 Calibration"
]
},
{
"cell_type": "markdown",
"id": "cae0be39-67b1-4cf7-8126-daa5633a6332",
"metadata": {},
"source": [
"## TwinAIR CO2 Cabin test"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "e7ed679d-bec3-402f-bf2e-0557fd7a335d",
"id": "d98b7cec-64fa-4d8f-89cd-14828e32dacc",
"metadata": {},
"outputs": [],
"source": [
"import pandas as pd\n",
"import smartcitizen_connector\n",
"import scdata as sc\n",
"import time\n",
"now = time.localtime()"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "0dcb02b2-fdec-47ba-b906-a56a06bc6889",
"cell_type": "markdown",
"id": "cae0be39-67b1-4cf7-8126-daa5633a6332",
"metadata": {},
"outputs": [],
"source": [
"df = smartcitizen_connector.search_by_query(endpoint='devices',\n",
" search_items=[{\n",
" 'key': 'postprocessing_id', \n",
" 'value': 'not_null',\n",
" 'full': True\n",
" }])"
"## TwinAIR CO2 Cabin test (not corrected)"
]
},
{
Expand Down Expand Up @@ -94,7 +80,7 @@
},
"outputs": [],
"source": [
"test = sc.Test(name=f'CO2_CHAMBER_TEST',\n",
"test = sc.Test(name=f'CO2_CHAMBER_TEST_1',\n",
" devices=devices_api + devices_csv,\n",
" force_recreate=True\n",
")\n",
Expand All @@ -113,16 +99,6 @@
"await test.load()"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "dba18122-d6e2-4b14-8e1f-ab6c9a8c8e8d",
"metadata": {},
"outputs": [],
"source": [
"import pandas as pd"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand Down Expand Up @@ -160,6 +136,24 @@
" 'max_date':'2024-05-24 16:15:00'\n",
" })"
]
},
{
"cell_type": "markdown",
"id": "2fe91e16-9006-4ab1-ab6e-b9a887e9c9f2",
"metadata": {},
"source": [
"## TwinAIR CO2 Cabin test (corrected)"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "6b16799d-b531-4f72-952b-4ce4eeae7865",
"metadata": {},
"outputs": [],
"source": [
"devices_2 = [ 17265, 17295, 17313, 17319]"
]
}
],
"metadata": {
Expand Down
44 changes: 19 additions & 25 deletions deliveries/TwinAir/240603_TwinAIR-Cabin-CO2-calibration.html
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,8 @@ <h2> Contents </h2>
</div>
<nav aria-label="Page">
<ul class="visible nav section-nav flex-column">
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#twinair-co2-cabin-test">TwinAIR CO2 Cabin test</a></li>
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#twinair-co2-cabin-test-not-corrected">TwinAIR CO2 Cabin test (not corrected)</a></li>
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#twinair-co2-cabin-test-corrected">TwinAIR CO2 Cabin test (corrected)</a></li>
</ul>
</nav>
</div>
Expand All @@ -382,30 +383,19 @@ <h2> Contents </h2>

<section id="co2-calibration">
<h1>CO2 Calibration<a class="headerlink" href="#co2-calibration" title="Permalink to this heading">#</a></h1>
<section id="twinair-co2-cabin-test">
<h2>TwinAIR CO2 Cabin test<a class="headerlink" href="#twinair-co2-cabin-test" title="Permalink to this heading">#</a></h2>
<div class="cell docutils container">
<div class="cell_input docutils container">
<div class="highlight-ipython3 notranslate"><div class="highlight"><pre><span></span><span class="kn">import</span> <span class="nn">smartcitizen_connector</span>
<div class="highlight-ipython3 notranslate"><div class="highlight"><pre><span></span><span class="kn">import</span> <span class="nn">pandas</span> <span class="k">as</span> <span class="nn">pd</span>
<span class="kn">import</span> <span class="nn">smartcitizen_connector</span>
<span class="kn">import</span> <span class="nn">scdata</span> <span class="k">as</span> <span class="nn">sc</span>
<span class="kn">import</span> <span class="nn">time</span>
<span class="n">now</span> <span class="o">=</span> <span class="n">time</span><span class="o">.</span><span class="n">localtime</span><span class="p">()</span>
</pre></div>
</div>
</div>
</div>
<div class="cell docutils container">
<div class="cell_input docutils container">
<div class="highlight-ipython3 notranslate"><div class="highlight"><pre><span></span><span class="n">df</span> <span class="o">=</span> <span class="n">smartcitizen_connector</span><span class="o">.</span><span class="n">search_by_query</span><span class="p">(</span><span class="n">endpoint</span><span class="o">=</span><span class="s1">&#39;devices&#39;</span><span class="p">,</span>
<span class="n">search_items</span><span class="o">=</span><span class="p">[{</span>
<span class="s1">&#39;key&#39;</span><span class="p">:</span> <span class="s1">&#39;postprocessing_id&#39;</span><span class="p">,</span>
<span class="s1">&#39;value&#39;</span><span class="p">:</span> <span class="s1">&#39;not_null&#39;</span><span class="p">,</span>
<span class="s1">&#39;full&#39;</span><span class="p">:</span> <span class="kc">True</span>
<span class="p">}])</span>
</pre></div>
</div>
</div>
</div>
<section id="twinair-co2-cabin-test-not-corrected">
<h2>TwinAIR CO2 Cabin test (not corrected)<a class="headerlink" href="#twinair-co2-cabin-test-not-corrected" title="Permalink to this heading">#</a></h2>
<div class="cell docutils container">
<div class="cell_input docutils container">
<div class="highlight-ipython3 notranslate"><div class="highlight"><pre><span></span><span class="n">devices</span> <span class="o">=</span> <span class="p">[</span><span class="mi">17265</span><span class="p">,</span> <span class="mi">17295</span><span class="p">,</span> <span class="mi">17306</span><span class="p">,</span> <span class="mi">17313</span><span class="p">,</span> <span class="mi">17318</span><span class="p">,</span> <span class="mi">17319</span><span class="p">]</span>
Expand Down Expand Up @@ -438,7 +428,7 @@ <h2>TwinAIR CO2 Cabin test<a class="headerlink" href="#twinair-co2-cabin-test" t
</div>
<div class="cell docutils container">
<div class="cell_input docutils container">
<div class="highlight-ipython3 notranslate"><div class="highlight"><pre><span></span><span class="n">test</span> <span class="o">=</span> <span class="n">sc</span><span class="o">.</span><span class="n">Test</span><span class="p">(</span><span class="n">name</span><span class="o">=</span><span class="sa">f</span><span class="s1">&#39;CO2_CHAMBER_TEST&#39;</span><span class="p">,</span>
<div class="highlight-ipython3 notranslate"><div class="highlight"><pre><span></span><span class="n">test</span> <span class="o">=</span> <span class="n">sc</span><span class="o">.</span><span class="n">Test</span><span class="p">(</span><span class="n">name</span><span class="o">=</span><span class="sa">f</span><span class="s1">&#39;CO2_CHAMBER_TEST_1&#39;</span><span class="p">,</span>
<span class="n">devices</span><span class="o">=</span><span class="n">devices_api</span> <span class="o">+</span> <span class="n">devices_csv</span><span class="p">,</span>
<span class="n">force_recreate</span><span class="o">=</span><span class="kc">True</span>
<span class="p">)</span>
Expand All @@ -456,13 +446,6 @@ <h2>TwinAIR CO2 Cabin test<a class="headerlink" href="#twinair-co2-cabin-test" t
</div>
<div class="cell docutils container">
<div class="cell_input docutils container">
<div class="highlight-ipython3 notranslate"><div class="highlight"><pre><span></span><span class="kn">import</span> <span class="nn">pandas</span> <span class="k">as</span> <span class="nn">pd</span>
</pre></div>
</div>
</div>
</div>
<div class="cell docutils container">
<div class="cell_input docutils container">
<div class="highlight-ipython3 notranslate"><div class="highlight"><pre><span></span><span class="n">test</span><span class="o">.</span><span class="n">get_device</span><span class="p">(</span><span class="mi">0</span><span class="p">)</span><span class="o">.</span><span class="n">data</span><span class="o">.</span><span class="n">index</span> <span class="o">=</span> <span class="n">test</span><span class="o">.</span><span class="n">get_device</span><span class="p">(</span><span class="mi">0</span><span class="p">)</span><span class="o">.</span><span class="n">data</span><span class="o">.</span><span class="n">index</span> <span class="o">-</span> <span class="n">pd</span><span class="o">.</span><span class="n">Timedelta</span><span class="p">(</span><span class="n">hours</span><span class="o">=</span><span class="mi">1</span><span class="p">)</span>
</pre></div>
</div>
Expand Down Expand Up @@ -494,6 +477,16 @@ <h2>TwinAIR CO2 Cabin test<a class="headerlink" href="#twinair-co2-cabin-test" t
</div>
</div>
</section>
<section id="twinair-co2-cabin-test-corrected">
<h2>TwinAIR CO2 Cabin test (corrected)<a class="headerlink" href="#twinair-co2-cabin-test-corrected" title="Permalink to this heading">#</a></h2>
<div class="cell docutils container">
<div class="cell_input docutils container">
<div class="highlight-ipython3 notranslate"><div class="highlight"><pre><span></span><span class="n">devices_2</span> <span class="o">=</span> <span class="p">[</span> <span class="mi">17265</span><span class="p">,</span> <span class="mi">17295</span><span class="p">,</span> <span class="mi">17313</span><span class="p">,</span> <span class="mi">17319</span><span class="p">]</span>
</pre></div>
</div>
</div>
</div>
</section>
</section>

<script type="text/x-thebe-config">
Expand Down Expand Up @@ -541,7 +534,8 @@ <h2>TwinAIR CO2 Cabin test<a class="headerlink" href="#twinair-co2-cabin-test" t
</div>
<nav class="bd-toc-nav page-toc">
<ul class="visible nav section-nav flex-column">
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#twinair-co2-cabin-test">TwinAIR CO2 Cabin test</a></li>
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#twinair-co2-cabin-test-not-corrected">TwinAIR CO2 Cabin test (not corrected)</a></li>
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#twinair-co2-cabin-test-corrected">TwinAIR CO2 Cabin test (corrected)</a></li>
</ul>
</nav></div>

Expand Down
2 changes: 1 addition & 1 deletion searchindex.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 9437ddf

Please sign in to comment.