Commit 14496cf3 authored by Camron Blackburn's avatar Camron Blackburn
Browse files

clean notebook

parent 6fb9cfec
Pipeline #5422 passed with stage
in 6 seconds
...@@ -28,349 +28,7 @@ ...@@ -28,349 +28,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 91, "execution_count": 121,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"<div>\n",
"<style scoped>\n",
" .dataframe tbody tr th:only-of-type {\n",
" vertical-align: middle;\n",
" }\n",
"\n",
" .dataframe tbody tr th {\n",
" vertical-align: top;\n",
" }\n",
"\n",
" .dataframe thead th {\n",
" text-align: right;\n",
" }\n",
"</style>\n",
"<table border=\"1\" class=\"dataframe\">\n",
" <thead>\n",
" <tr style=\"text-align: right;\">\n",
" <th></th>\n",
" <th>image</th>\n",
" <th>avg fiber diameter (um)</th>\n",
" <th>thickness (mm)</th>\n",
" <th>weight (g/cm^2)</th>\n",
" <th>filter efficiency (%)</th>\n",
" <th>pressure drop (psi)</th>\n",
" <th>nameref</th>\n",
" <th>imagepath</th>\n",
" </tr>\n",
" <tr>\n",
" <th>name</th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th>3M_1000MPR</th>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>0.280</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>./materials/3M_1000MPR/3M_1000MPR.html</td>\n",
" <td>./materials/3M_1000MPR/SEM/3M_filtrete1000_20n...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>3M_1900MPR</th>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>0.319</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>./materials/3M_1900MPR/3M_1900MPR.html</td>\n",
" <td>./materials/3M_1900MPR/SEM/3M_filtrete1900_20n...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>3M_300MPR</th>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>0.292</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>./materials/3M_300MPR/3M_300MPR.html</td>\n",
" <td>./materials/3M_300MPR/SEM/3M_filtrete300_20nmA...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>3M_N95</th>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>0.721</td>\n",
" <td>0.0223</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>./materials/3M_N95/3M_N95.html</td>\n",
" <td>./materials/3M_N95/SEM/3MN95_nosputter_top_000...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>Arauco_BKP</th>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>1.800</td>\n",
" <td>0.0639</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>./materials/Arauco_BKP/Arauco_BKP.html</td>\n",
" <td>./materials/Arauco_BKP/SEM/AraucoBKP_6_20nmAu_...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>Arauco_EKP</th>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>1.300</td>\n",
" <td>0.0772</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>./materials/Arauco_EKP/Arauco_EKP.html</td>\n",
" <td>./materials/Arauco_EKP/SEM/AraucoEKP_8_20nmAu_...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>Arauco_UKP</th>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>1.600</td>\n",
" <td>0.0821</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>./materials/Arauco_UKP/Arauco_UKP.html</td>\n",
" <td>./materials/Arauco_UKP/SEM/AraucoUKP_6_20nmAu_...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>Gerson_N95</th>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>1.076</td>\n",
" <td>0.0306</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>./materials/Gerson_N95/Gerson_N95.html</td>\n",
" <td>./materials/Gerson_N95/SEM/GersonN95_nosputter...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>HEPA</th>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>0.209</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>./materials/HEPA/HEPA.html</td>\n",
" <td>./materials/HEPA/SEM/inline_HEPA_20nmAu_top_00...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>HV_PN13015AP2</th>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>0.081</td>\n",
" <td>0.0020</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>./materials/HV_PN13015AP2/HV_PN13015AP2.html</td>\n",
" <td>./materials/HV_PN13015AP2/SEM/PN13015AP2_20nmA...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>HV_TSP050PLUS</th>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>0.295</td>\n",
" <td>0.0064</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>./materials/HV_TSP050PLUS/HV_TSP050PLUS.html</td>\n",
" <td>./materials/HV_TSP050PLUS/SEM/TS050PLUS_20nmAu...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>HV_TSP050YA002</th>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>0.446</td>\n",
" <td>0.0143</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>./materials/HV_TSP050YA002/HV_TSP050YA002.html</td>\n",
" <td>./materials/HV_TSP050YA002/SEM/TSP050YA002_20n...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>HV_TSP100NS015</th>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>0.437</td>\n",
" <td>0.0152</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>./materials/HV_TSP100NS015/HV_TSP100NS015.html</td>\n",
" <td>./materials/HV_TSP100NS015/SEM/TSP100NS015_20n...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>KC_47117</th>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>0.184</td>\n",
" <td>0.0067</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>./materials/KC_47117/KC_47117.html</td>\n",
" <td>./materials/KC_47117/SEM/KC47117_20sputter_mid...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>cotton</th>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>0.333</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>./materials/cotton/cotton.html</td>\n",
" <td>./materials/cotton/SEM/tshirt_100cotton_20nmAu...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>polyester</th>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>0.137</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>./materials/polyester/polyester.html</td>\n",
" <td>./materials/polyester/SEM/pillowcase_20nmAu_to...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>tyvek</th>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>0.143</td>\n",
" <td>0.0065</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>./materials/tyvek/tyvek.html</td>\n",
" <td>./materials/tyvek/SEM/tyvek_20nmAu_top_0005_re...</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"</div>"
],
"text/plain": [
" image avg fiber diameter (um) thickness (mm) \\\n",
"name \n",
"3M_1000MPR NaN NaN 0.280 \n",
"3M_1900MPR NaN NaN 0.319 \n",
"3M_300MPR NaN NaN 0.292 \n",
"3M_N95 NaN NaN 0.721 \n",
"Arauco_BKP NaN NaN 1.800 \n",
"Arauco_EKP NaN NaN 1.300 \n",
"Arauco_UKP NaN NaN 1.600 \n",
"Gerson_N95 NaN NaN 1.076 \n",
"HEPA NaN NaN 0.209 \n",
"HV_PN13015AP2 NaN NaN 0.081 \n",
"HV_TSP050PLUS NaN NaN 0.295 \n",
"HV_TSP050YA002 NaN NaN 0.446 \n",
"HV_TSP100NS015 NaN NaN 0.437 \n",
"KC_47117 NaN NaN 0.184 \n",
"cotton NaN NaN 0.333 \n",
"polyester NaN NaN 0.137 \n",
"tyvek NaN NaN 0.143 \n",
"\n",
" weight (g/cm^2) filter efficiency (%) pressure drop (psi) \\\n",
"name \n",
"3M_1000MPR NaN NaN NaN \n",
"3M_1900MPR NaN NaN NaN \n",
"3M_300MPR NaN NaN NaN \n",
"3M_N95 0.0223 NaN NaN \n",
"Arauco_BKP 0.0639 NaN NaN \n",
"Arauco_EKP 0.0772 NaN NaN \n",
"Arauco_UKP 0.0821 NaN NaN \n",
"Gerson_N95 0.0306 NaN NaN \n",
"HEPA NaN NaN NaN \n",
"HV_PN13015AP2 0.0020 NaN NaN \n",
"HV_TSP050PLUS 0.0064 NaN NaN \n",
"HV_TSP050YA002 0.0143 NaN NaN \n",
"HV_TSP100NS015 0.0152 NaN NaN \n",
"KC_47117 0.0067 NaN NaN \n",
"cotton NaN NaN NaN \n",
"polyester NaN NaN NaN \n",
"tyvek 0.0065 NaN NaN \n",
"\n",
" nameref \\\n",
"name \n",
"3M_1000MPR ./materials/3M_1000MPR/3M_1000MPR.html \n",
"3M_1900MPR ./materials/3M_1900MPR/3M_1900MPR.html \n",
"3M_300MPR ./materials/3M_300MPR/3M_300MPR.html \n",
"3M_N95 ./materials/3M_N95/3M_N95.html \n",
"Arauco_BKP ./materials/Arauco_BKP/Arauco_BKP.html \n",
"Arauco_EKP ./materials/Arauco_EKP/Arauco_EKP.html \n",
"Arauco_UKP ./materials/Arauco_UKP/Arauco_UKP.html \n",
"Gerson_N95 ./materials/Gerson_N95/Gerson_N95.html \n",
"HEPA ./materials/HEPA/HEPA.html \n",
"HV_PN13015AP2 ./materials/HV_PN13015AP2/HV_PN13015AP2.html \n",
"HV_TSP050PLUS ./materials/HV_TSP050PLUS/HV_TSP050PLUS.html \n",
"HV_TSP050YA002 ./materials/HV_TSP050YA002/HV_TSP050YA002.html \n",
"HV_TSP100NS015 ./materials/HV_TSP100NS015/HV_TSP100NS015.html \n",
"KC_47117 ./materials/KC_47117/KC_47117.html \n",
"cotton ./materials/cotton/cotton.html \n",
"polyester ./materials/polyester/polyester.html \n",
"tyvek ./materials/tyvek/tyvek.html \n",
"\n",
" imagepath \n",
"name \n",
"3M_1000MPR ./materials/3M_1000MPR/SEM/3M_filtrete1000_20n... \n",
"3M_1900MPR ./materials/3M_1900MPR/SEM/3M_filtrete1900_20n... \n",
"3M_300MPR ./materials/3M_300MPR/SEM/3M_filtrete300_20nmA... \n",
"3M_N95 ./materials/3M_N95/SEM/3MN95_nosputter_top_000... \n",
"Arauco_BKP ./materials/Arauco_BKP/SEM/AraucoBKP_6_20nmAu_... \n",
"Arauco_EKP ./materials/Arauco_EKP/SEM/AraucoEKP_8_20nmAu_... \n",
"Arauco_UKP ./materials/Arauco_UKP/SEM/AraucoUKP_6_20nmAu_... \n",
"Gerson_N95 ./materials/Gerson_N95/SEM/GersonN95_nosputter... \n",
"HEPA ./materials/HEPA/SEM/inline_HEPA_20nmAu_top_00... \n",
"HV_PN13015AP2 ./materials/HV_PN13015AP2/SEM/PN13015AP2_20nmA... \n",
"HV_TSP050PLUS ./materials/HV_TSP050PLUS/SEM/TS050PLUS_20nmAu... \n",
"HV_TSP050YA002 ./materials/HV_TSP050YA002/SEM/TSP050YA002_20n... \n",
"HV_TSP100NS015 ./materials/HV_TSP100NS015/SEM/TSP100NS015_20n... \n",
"KC_47117 ./materials/KC_47117/SEM/KC47117_20sputter_mid... \n",
"cotton ./materials/cotton/SEM/tshirt_100cotton_20nmAu... \n",
"polyester ./materials/polyester/SEM/pillowcase_20nmAu_to... \n",
"tyvek ./materials/tyvek/SEM/tyvek_20nmAu_top_0005_re... "
]
},
"execution_count": 91,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"master_table = pd.read_html(\"./index.html\")[0]\n",
"xml_table = lhtml.parse(\"./index.html\")\n",
"master_table['nameref'] = xml_table.xpath('//tr/td/a/@href')\n",
"master_table['imagepath'] = xml_table.xpath('//tr/td/img/@src')\n",
"master_table = master_table.set_index('name')\n",
"master_table"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Fiber diameter (fd in $\\mu$m)"
]
},
{
"cell_type": "code",
"execution_count": 92,
"metadata": {}, "metadata": {},
"outputs": [ "outputs": [
{ {
...@@ -689,11 +347,32 @@ ...@@ -689,11 +347,32 @@
"tyvek ./materials/tyvek/SEM/tyvek_20nmAu_top_0005_re... " "tyvek ./materials/tyvek/SEM/tyvek_20nmAu_top_0005_re... "
] ]
}, },
"execution_count": 92, "execution_count": 121,
"metadata": {}, "metadata": {},
"output_type": "execute_result" "output_type": "execute_result"
} }
], ],
"source": [
"master_table = pd.read_html(\"./index.html\")[0]\n",
"xml_table = lhtml.parse(\"./index.html\")\n",
"master_table['nameref'] = xml_table.xpath('//tr/td/a/@href')\n",
"master_table['imagepath'] = xml_table.xpath('//tr/td/img/@src')\n",
"master_table = master_table.set_index('name')\n",
"master_table"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Fiber diameter (fd in $\\mu$m)"
]
},
{
"cell_type": "code",
"execution_count": 124,
"metadata": {},
"outputs": [],
"source": [ "source": [
"fd_data = pd.read_csv(\"./data/fiber_diameter.csv\", header=1, dtype=float)\n", "fd_data = pd.read_csv(\"./data/fiber_diameter.csv\", header=1, dtype=float)\n",
"fd_sum = pd.DataFrame(index=fd_data.columns, columns=[\"fiber diam\"], dtype=str)\n", "fd_sum = pd.DataFrame(index=fd_data.columns, columns=[\"fiber diam\"], dtype=str)\n",
...@@ -701,9 +380,9 @@ ...@@ -701,9 +380,9 @@
" data = data.dropna().to_numpy()\n", " data = data.dropna().to_numpy()\n",
" mean = round(data.mean(), 2)\n", " mean = round(data.mean(), 2)\n",
" std = round(data.std(), 2)\n", " std = round(data.std(), 2)\n",
" master_table.loc[name, \"avg fiber diameter (um)\"] = \"%s +/- %s\" %(mean, std)\n", " #master_table.loc[name, \"avg fiber diameter (um)\"] = \"%s +/- %s\" %(mean, std)\n",
" \n", " \n",
"master_table" "#master_table\n"
] ]
}, },
{ {
...@@ -1020,6 +699,9 @@ ...@@ -1020,6 +699,9 @@
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
"source": [ "source": [
"# CAUTION WITH THIS GUY\n",
"#\n",
"#\n",
"# wrrite to file\n", "# wrrite to file\n",
"index_html = open(\"./index.html\", mode=\"a\")\n", "index_html = open(\"./index.html\", mode=\"a\")\n",
"index_html.write(html_table)\n", "index_html.write(html_table)\n",
......
%% Cell type:markdown id: tags: %% Cell type:markdown id: tags:
# data notes # data notes
%% Cell type:code id: tags: %% Cell type:code id: tags:
``` python ``` python
import pandas as pd import pandas as pd
import numpy as np import numpy as np
import os import os
import lxml.html as lhtml import lxml.html as lhtml
``` ```
%% Cell type:markdown id: tags: %% Cell type:markdown id: tags:
# master table # master table
%% Cell type:code id: tags: %% Cell type:code id: tags:
``` python ``` python
master_table = pd.read_html("./index.html")[0] master_table = pd.read_html("./index.html")[0]
xml_table = lhtml.parse("./index.html") xml_table = lhtml.parse("./index.html")
master_table['nameref'] = xml_table.xpath('//tr/td/a/@href') master_table['nameref'] = xml_table.xpath('//tr/td/a/@href')
master_table['imagepath'] = xml_table.xpath('//tr/td/img/@src') master_table['imagepath'] = xml_table.xpath('//tr/td/img/@src')
master_table = master_table.set_index('name') master_table = master_table.set_index('name')
master_table master_table
``` ```
%%%% Output: execute_result %%%% Output: execute_result
image avg fiber diameter (um) thickness (mm) \
name
3M_1000MPR NaN NaN 0.280
3M_1900MPR NaN NaN 0.319
3M_300MPR NaN NaN 0.292
3M_N95 NaN NaN 0.721
Arauco_BKP NaN NaN 1.800
Arauco_EKP NaN NaN 1.300
Arauco_UKP NaN NaN 1.600
Gerson_N95 NaN NaN 1.076
HEPA NaN NaN 0.209
HV_PN13015AP2 NaN NaN 0.081
HV_TSP050PLUS NaN NaN 0.295
HV_TSP050YA002 NaN NaN 0.446
HV_TSP100NS015 NaN NaN 0.437
KC_47117 NaN NaN 0.184
cotton NaN NaN 0.333
polyester NaN NaN 0.137
tyvek NaN NaN 0.143
weight (g/cm^2) filter efficiency (%) pressure drop (psi) \
name
3M_1000MPR NaN NaN NaN
3M_1900MPR NaN NaN NaN
3M_300MPR NaN NaN NaN
3M_N95 0.0223 NaN NaN
Arauco_BKP 0.0639 NaN NaN
Arauco_EKP 0.0772 NaN NaN
Arauco_UKP 0.0821 NaN NaN
Gerson_N95 0.0306 NaN NaN
HEPA NaN NaN NaN
HV_PN13015AP2 0.0020 NaN NaN
HV_TSP050PLUS 0.0064 NaN NaN
HV_TSP050YA002 0.0143 NaN NaN
HV_TSP100NS015 0.0152 NaN NaN
KC_47117 0.0067 NaN NaN
cotton NaN NaN NaN
polyester NaN NaN NaN
tyvek 0.0065 NaN NaN
nameref \
name
3M_1000MPR ./materials/3M_1000MPR/3M_1000MPR.html
3M_1900MPR ./materials/3M_1900MPR/3M_1900MPR.html
3M_300MPR ./materials/3M_300MPR/3M_300MPR.html
3M_N95 ./materials/3M_N95/3M_N95.html
Arauco_BKP ./materials/Arauco_BKP/Arauco_BKP.html
Arauco_EKP ./materials/Arauco_EKP/Arauco_EKP.html
Arauco_UKP ./materials/Arauco_UKP/Arauco_UKP.html
Gerson_N95 ./materials/Gerson_N95/Gerson_N95.html
HEPA ./materials/HEPA/HEPA.html
HV_PN13015AP2 ./materials/HV_PN13015AP2/HV_PN13015AP2.html
HV_TSP050PLUS ./materials/HV_TSP050PLUS/HV_TSP050PLUS.html
HV_TSP050YA002 ./materials/HV_TSP050YA002/HV_TSP050YA002.html
HV_TSP100NS015 ./materials/HV_TSP100NS015/HV_TSP100NS015.html
KC_47117 ./materials/KC_47117/KC_47117.html
cotton ./materials/cotton/cotton.html
polyester ./materials/polyester/polyester.html
tyvek ./materials/tyvek/tyvek.html
imagepath
name
3M_1000MPR ./materials/3M_1000MPR/SEM/3M_filtrete1000_20n...
3M_1900MPR ./materials/3M_1900MPR/SEM/3M_filtrete1900_20n...
3M_300MPR ./materials/3M_300MPR/SEM/3M_filtrete300_20nmA...
3M_N95 ./materials/3M_N95/SEM/3MN95_nosputter_top_000...
Arauco_BKP ./materials/Arauco_BKP/SEM/AraucoBKP_6_20nmAu_...
Arauco_EKP ./materials/Arauco_EKP/SEM/AraucoEKP_8_20nmAu_...
Arauco_UKP ./materials/Arauco_UKP/SEM/AraucoUKP_6_20nmAu_...
Gerson_N95 ./materials/Gerson_N95/SEM/GersonN95_nosputter...
HEPA ./materials/HEPA/SEM/inline_HEPA_20nmAu_top_00...
HV_PN13015AP2 ./materials/HV_PN13015AP2/SEM/PN13015AP2_20nmA...
HV_TSP050PLUS ./materials/HV_TSP050PLUS/SEM/TS050PLUS_20nmAu...
HV_TSP050YA002 ./materials/HV_TSP050YA002/SEM/TSP050YA002_20n...
HV_TSP100NS015 ./materials/HV_TSP100NS015/SEM/TSP100NS015_20n...
KC_47117 ./materials/KC_47117/SEM/KC47117_20sputter_mid...
cotton ./materials/cotton/SEM/tshirt_100cotton_20nmAu...
polyester ./materials/polyester/SEM/pillowcase_20nmAu_to...
tyvek ./materials/tyvek/SEM/tyvek_20nmAu_top_0005_re...
%% Cell type:markdown id: tags:
### Fiber diameter (fd in $\mu$m)
%% Cell type:code id: tags:
``` python
fd_data = pd.read_csv("./data/fiber_diameter.csv", header=1, dtype=float)
fd_sum = pd.DataFrame(index=fd_data.columns, columns=["fiber diam"], dtype=str)
for (name, data) in fd_data.iteritems():
data = data.dropna().to_numpy()
mean = round(data.mean(), 2)
std = round(data.std(), 2)
master_table.loc[name, "avg fiber diameter (um)"] = "%s +/- %s" %(mean, std)
master_table
```
%%%% Output: execute_result
image avg fiber diameter (um) thickness (mm) \ image avg fiber diameter (um) thickness (mm) \
name name
3M_1000MPR NaN 18.2 +/- 2.39 0.280 3M_1000MPR NaN 18.2 +/- 2.39 0.280
3M_1900MPR NaN 15.93 +/- 0.72 0.319 3M_1900MPR NaN 15.93 +/- 0.72 0.319
3M_300MPR NaN 23.94 +/- 1.61 0.292 3M_300MPR NaN 23.94 +/- 1.61 0.292
3M_N95 NaN 21.5 +/- 2.52 0.721 3M_N95 NaN 21.5 +/- 2.52 0.721
Arauco_BKP NaN 35.96 +/- 11.15 1.800 Arauco_BKP NaN 35.96 +/- 11.15 1.800
Arauco_EKP NaN 15.46 +/- 5.18 1.300 Arauco_EKP NaN 15.46 +/- 5.18 1.300
Arauco_UKP NaN 35.44 +/- 11.07 1.600 Arauco_UKP NaN 35.44 +/- 11.07 1.600
Gerson_N95 NaN 18.48 +/- 6.55 1.076 Gerson_N95 NaN 18.48 +/- 6.55 1.076
HEPA NaN 1.99 +/- 1.24 0.209 HEPA NaN 1.99 +/- 1.24 0.209
HV_PN13015AP2 NaN 3.63 +/- 1.59 0.081 HV_PN13015AP2 NaN 3.63 +/- 1.59 0.081
HV_TSP050PLUS NaN 17.22 +/- 3.15 0.295 HV_TSP050PLUS NaN 17.22 +/- 3.15 0.295
HV_TSP050YA002 NaN 20.39 +/- 4.08 0.446 HV_TSP050YA002 NaN 20.39 +/- 4.08 0.446
HV_TSP100NS015 NaN 18.21 +/- 3.74 0.437 HV_TSP100NS015 NaN 18.21 +/- 3.74 0.437
KC_47117 NaN 14.03 +/- 13.69 0.184 KC_47117 NaN 14.03 +/- 13.69 0.184
cotton NaN 15.71 +/- 3.23 0.333 cotton NaN 15.71 +/- 3.23 0.333
polyester NaN 10.35 +/- 2.18 0.137 polyester NaN 10.35 +/- 2.18 0.137
tyvek NaN 8.71 +/- 6.24 0.143 tyvek NaN 8.71 +/- 6.24 0.143
weight (g/cm^2) filter efficiency (%) pressure drop (psi) \ weight (g/cm^2) filter efficiency (%) pressure drop (psi) \
name name
3M_1000MPR NaN NaN NaN 3M_1000MPR NaN NaN NaN
3M_1900MPR NaN NaN NaN 3M_1900MPR NaN NaN NaN
3M_300MPR NaN NaN NaN 3M_300MPR NaN NaN NaN
3M_N95 0.0223 NaN NaN 3M_N95 0.0223 NaN NaN
Arauco_BKP 0.0639 NaN NaN Arauco_BKP 0.0639 NaN NaN
Arauco_EKP 0.0772 NaN NaN Arauco_EKP 0.0772 NaN NaN
Arauco_UKP 0.0821 NaN NaN Arauco_UKP 0.0821 NaN NaN
Gerson_N95 0.0306 NaN NaN Gerson_N95 0.0306 NaN NaN
HEPA NaN NaN NaN HEPA NaN NaN NaN
HV_PN13015AP2 0.0020 NaN NaN HV_PN13015AP2 0.0020 NaN NaN
HV_TSP050PLUS 0.0064 NaN NaN HV_TSP050PLUS 0.0064 NaN NaN
HV_TSP050YA002 0.0143 NaN NaN HV_TSP050YA002 0.0143 NaN NaN
HV_TSP100NS015 0.0152 NaN NaN HV_TSP100NS015 0.0152 NaN NaN
KC_47117 0.0067 NaN NaN KC_47117 0.0067 NaN NaN
cotton NaN NaN NaN cotton NaN NaN NaN
polyester NaN NaN NaN polyester NaN NaN NaN
tyvek 0.0065 NaN NaN tyvek 0.0065 NaN NaN
nameref \ nameref \
name name
3M_1000MPR ./materials/3M_1000MPR/3M_1000MPR.html 3M_1000MPR ./materials/3M_1000MPR/3M_1000MPR.html
3M_1900MPR ./materials/3M_1900MPR/3M_1900MPR.html 3M_1900MPR ./materials/3M_1900MPR/3M_1900MPR.html
3M_300MPR ./materials/3M_300MPR/3M_300MPR.html 3M_300MPR ./materials/3M_300MPR/3M_300MPR.html
3M_N95 ./materials/3M_N95/3M_N95.html 3M_N95 ./materials/3M_N95/3M_N95.html
Arauco_BKP ./materials/Arauco_BKP/Arauco_BKP.html Arauco_BKP ./materials/Arauco_BKP/Arauco_BKP.html
Arauco_EKP ./materials/Arauco_EKP/Arauco_EKP.html Arauco_EKP ./materials/Arauco_EKP/Arauco_EKP.html
Arauco_UKP ./materials/Arauco_UKP/Arauco_UKP.html Arauco_UKP ./materials/Arauco_UKP/Arauco_UKP.html
Gerson_N95 ./materials/Gerson_N95/Gerson_N95.html Gerson_N95 ./materials/Gerson_N95/Gerson_N95.html
HEPA ./materials/HEPA/HEPA.html HEPA ./materials/HEPA/HEPA.html
HV_PN13015AP2 ./materials/HV_PN13015AP2/HV_PN13015AP2.html HV_PN13015AP2 ./materials/HV_PN13015AP2/HV_PN13015AP2.html
HV_TSP050PLUS ./materials/HV_TSP050PLUS/HV_TSP050PLUS.html HV_TSP050PLUS ./materials/HV_TSP050PLUS/HV_TSP050PLUS.html
HV_TSP050YA002 ./materials/HV_TSP050YA002/HV_TSP050YA002.html HV_TSP050YA002 ./materials/HV_TSP050YA002/HV_TSP050YA002.html
HV_TSP100NS015 ./materials/HV_TSP100NS015/HV_TSP100NS015.html HV_TSP100NS015 ./materials/HV_TSP100NS015/HV_TSP100NS015.html
KC_47117 ./materials/KC_47117/KC_47117.html KC_47117 ./materials/KC_47117/KC_47117.html
cotton ./materials/cotton/cotton.html cotton ./materials/cotton/cotton.html
polyester ./materials/polyester/polyester.html polyester ./materials/polyester/polyester.html
tyvek ./materials/tyvek/tyvek.html tyvek ./materials/tyvek/tyvek.html
imagepath imagepath
name name
3M_1000MPR ./materials/3M_1000MPR/SEM/3M_filtrete1000_20n... 3M_1000MPR ./materials/3M_1000MPR/SEM/3M_filtrete1000_20n...
3M_1900MPR ./materials/3M_1900MPR/SEM/3M_filtrete1900_20n... 3M_1900MPR ./materials/3M_1900MPR/SEM/3M_filtrete1900_20n...
3M_300MPR ./materials/3M_300MPR/SEM/3M_filtrete300_20nmA... 3M_300MPR ./materials/3M_300MPR/SEM/3M_filtrete300_20nmA...
3M_N95 ./materials/3M_N95/SEM/3MN95_nosputter_top_000... 3M_N95 ./materials/3M_N95/SEM/3MN95_nosputter_top_000...
Arauco_BKP ./materials/Arauco_BKP/SEM/AraucoBKP_6_20nmAu_... Arauco_BKP ./materials/Arauco_BKP/SEM/AraucoBKP_6_20nmAu_...
Arauco_EKP ./materials/Arauco_EKP/SEM/AraucoEKP_8_20nmAu_... Arauco_EKP ./materials/Arauco_EKP/SEM/AraucoEKP_8_20nmAu_...
Arauco_UKP ./materials/Arauco_UKP/SEM/AraucoUKP_6_20nmAu_... Arauco_UKP ./materials/Arauco_UKP/SEM/AraucoUKP_6_20nmAu_...
Gerson_N95 ./materials/Gerson_N95/SEM/GersonN95_nosputter... Gerson_N95 ./materials/Gerson_N95/SEM/GersonN95_nosputter...
HEPA ./materials/HEPA/SEM/inline_HEPA_20nmAu_top_00... HEPA ./materials/HEPA/SEM/inline_HEPA_20nmAu_top_00...
HV_PN13015AP2 ./materials/HV_PN13015AP2/SEM/PN13015AP2_20nmA... HV_PN13015AP2 ./materials/HV_PN13015AP2/SEM/PN13015AP2_20nmA...
HV_TSP050PLUS ./materials/HV_TSP050PLUS/SEM/TS050PLUS_20nmAu... HV_TSP050PLUS ./materials/HV_TSP050PLUS/SEM/TS050PLUS_20nmAu...
HV_TSP050YA002 ./materials/HV_TSP050YA002/SEM/TSP050YA002_20n... HV_TSP050YA002 ./materials/HV_TSP050YA002/SEM/TSP050YA002_20n...
HV_TSP100NS015 ./materials/HV_TSP100NS015/SEM/TSP100NS015_20n... HV_TSP100NS015 ./materials/HV_TSP100NS015/SEM/TSP100NS015_20n...
KC_47117 ./materials/KC_47117/SEM/KC47117_20sputter_mid... KC_47117 ./materials/KC_47117/SEM/KC47117_20sputter_mid...
cotton ./materials/cotton/SEM/tshirt_100cotton_20nmAu... cotton ./materials/cotton/SEM/tshirt_100cotton_20nmAu...
polyester ./materials/polyester/SEM/pillowcase_20nmAu_to... polyester ./materials/polyester/SEM/pillowcase_20nmAu_to...
tyvek ./materials/tyvek/SEM/tyvek_20nmAu_top_0005_re... tyvek ./materials/tyvek/SEM/tyvek_20nmAu_top_0005_re...
%% Cell type:markdown id: tags:
### Fiber diameter (fd in $\mu$m)
%% Cell type:code id: tags:
``` python
fd_data = pd.read_csv("./data/fiber_diameter.csv", header=1, dtype=float)
fd_sum = pd.DataFrame(index=fd_data.columns, columns=["fiber diam"], dtype=str)
for (name, data) in fd_data.iteritems():
data = data.dropna().to_numpy()
mean = round(data.mean(), 2)
std = round(data.std(), 2)
#master_table.loc[name, "avg fiber diameter (um)"] = "%s +/- %s" %(mean, std)
#master_table
```
%% Cell type:code id: tags: %% Cell type:code id: tags:
``` python ``` python
export_table = master_table.copy(deep=True) export_table = master_table.copy(deep=True)
export_table = export_table.reset_index() export_table = export_table.reset_index()
im_paths = ['<img src="%s" height="300">' % src for src in export_table.loc[:,"imagepath"]] im_paths = ['<img src="%s" height="300">' % src for src in export_table.loc[:,"imagepath"]]
export_table.loc[:,"image"] = im_paths export_table.loc[:,"image"] = im_paths
names = export_table.loc[:,"name"] names = export_table.loc[:,"name"]
namepaths = export_table.loc[:,"nameref"] namepaths = export_table.loc[:,"nameref"]
name_links = ['<a href="%s">%s</a>' % (namepaths[i], names[i]) for i in range(len(names)) ] name_links = ['<a href="%s">%s</a>' % (namepaths[i], names[i]) for i in range(len(names)) ]
export_table.loc[:,"name"] = name_links export_table.loc[:,"name"] = name_links
export_table = export_table.drop(labels=["nameref", "imagepath"], axis=1) export_table = export_table.drop(labels=["nameref", "imagepath"], axis=1)
html_table = export_table.to_html(escape=False, index=False, na_rep='') html_table = export_table.to_html(escape=False, index=False, na_rep='')
export_table export_table
``` ```
%%%% Output: execute_result %%%% Output: execute_result
name \ name \
0 <a href="./materials/3M_1000MPR/3M_1000MPR.htm... 0 <a href="./materials/3M_1000MPR/3M_1000MPR.htm...
1 <a href="./materials/3M_1900MPR/3M_1900MPR.htm... 1 <a href="./materials/3M_1900MPR/3M_1900MPR.htm...
2 <a href="./materials/3M_300MPR/3M_300MPR.html"... 2 <a href="./materials/3M_300MPR/3M_300MPR.html"...
3 <a href="./materials/3M_N95/3M_N95.html">3M_N9... 3 <a href="./materials/3M_N95/3M_N95.html">3M_N9...
4 <a href="./materials/Arauco_BKP/Arauco_BKP.htm... 4 <a href="./materials/Arauco_BKP/Arauco_BKP.htm...
5 <a href="./materials/Arauco_EKP/Arauco_EKP.htm... 5 <a href="./materials/Arauco_EKP/Arauco_EKP.htm...
6 <a href="./materials/Arauco_UKP/Arauco_UKP.htm... 6 <a href="./materials/Arauco_UKP/Arauco_UKP.htm...
7 <a href="./materials/Gerson_N95/Gerson_N95.htm... 7 <a href="./materials/Gerson_N95/Gerson_N95.htm...
8 <a href="./materials/HEPA/HEPA.html">HEPA</a> 8 <a href="./materials/HEPA/HEPA.html">HEPA</a>
9 <a href="./materials/HV_PN13015AP2/HV_PN13015A... 9 <a href="./materials/HV_PN13015AP2/HV_PN13015A...
10 <a href="./materials/HV_TSP050PLUS/HV_TSP050PL... 10 <a href="./materials/HV_TSP050PLUS/HV_TSP050PL...
11 <a href="./materials/HV_TSP050YA002/HV_TSP050Y... 11 <a href="./materials/HV_TSP050YA002/HV_TSP050Y...
12 <a href="./materials/HV_TSP100NS015/HV_TSP100N... 12 <a href="./materials/HV_TSP100NS015/HV_TSP100N...
13 <a href="./materials/KC_47117/KC_47117.html">K... 13 <a href="./materials/KC_47117/KC_47117.html">K...
14 <a href="./materials/cotton/cotton.html">cotto... 14 <a href="./materials/cotton/cotton.html">cotto...
15 <a href="./materials/polyester/polyester.html"... 15 <a href="./materials/polyester/polyester.html"...
16 <a href="./materials/tyvek/tyvek.html">tyvek</a> 16 <a href="./materials/tyvek/tyvek.html">tyvek</a>
image avg fiber diameter (um) \ image avg fiber diameter (um) \
0 <img src="./materials/3M_1000MPR/SEM/3M_filtre... 18.2 +/- 2.39 0 <img src="./materials/3M_1000MPR/SEM/3M_filtre... 18.2 +/- 2.39
1 <img src="./materials/3M_1900MPR/SEM/3M_filtre... 15.93 +/- 0.72 1 <img src="./materials/3M_1900MPR/SEM/3M_filtre... 15.93 +/- 0.72
2 <img src="./materials/3M_300MPR/SEM/3M_filtret... 23.94 +/- 1.61 2 <img src="./materials/3M_300MPR/SEM/3M_filtret... 23.94 +/- 1.61
3 <img src="./materials/3M_N95/SEM/3MN95_nosputt... 21.5 +/- 2.52 3 <img src="./materials/3M_N95/SEM/3MN95_nosputt... 21.5 +/- 2.52
4 <img src="./materials/Arauco_BKP/SEM/AraucoBKP... 35.96 +/- 11.15 4 <img src="./materials/Arauco_BKP/SEM/AraucoBKP... 35.96 +/- 11.15
5 <img src="./materials/Arauco_EKP/SEM/AraucoEKP... 15.46 +/- 5.18 5 <img src="./materials/Arauco_EKP/SEM/AraucoEKP... 15.46 +/- 5.18
6 <img src="./materials/Arauco_UKP/SEM/AraucoUKP... 35.44 +/- 11.07 6 <img src="./materials/Arauco_UKP/SEM/AraucoUKP... 35.44 +/- 11.07
7 <img src="./materials/Gerson_N95/SEM/GersonN95... 18.48 +/- 6.55 7 <img src="./materials/Gerson_N95/SEM/GersonN95... 18.48 +/- 6.55
8 <img src="./materials/HEPA/SEM/inline_HEPA_20n... 1.99 +/- 1.24 8 <img src="./materials/HEPA/SEM/inline_HEPA_20n... 1.99 +/- 1.24
9 <img src="./materials/HV_PN13015AP2/SEM/PN1301... 3.63 +/- 1.59 9 <img src="./materials/HV_PN13015AP2/SEM/PN1301... 3.63 +/- 1.59
10 <img src="./materials/HV_TSP050PLUS/SEM/TS050P... 17.22 +/- 3.15 10 <img src="./materials/HV_TSP050PLUS/SEM/TS050P... 17.22 +/- 3.15
11 <img src="./materials/HV_TSP050YA002/SEM/TSP05... 20.39 +/- 4.08 11 <img src="./materials/HV_TSP050YA002/SEM/TSP05... 20.39 +/- 4.08
12 <img src="./materials/HV_TSP100NS015/SEM/TSP10... 18.21 +/- 3.74 12 <img src="./materials/HV_TSP100NS015/SEM/TSP10... 18.21 +/- 3.74
13 <img src="./materials/KC_47117/SEM/KC47117_20s... 14.03 +/- 13.69 13 <img src="./materials/KC_47117/SEM/KC47117_20s... 14.03 +/- 13.69
14 <img src="./materials/cotton/SEM/tshirt_100cot... 15.71 +/- 3.23 14 <img src="./materials/cotton/SEM/tshirt_100cot... 15.71 +/- 3.23
15 <img src="./materials/polyester/SEM/pillowcase... 10.35 +/- 2.18 15 <img src="./materials/polyester/SEM/pillowcase... 10.35 +/- 2.18
16 <img src="./materials/tyvek/SEM/tyvek_20nmAu_t... 8.71 +/- 6.24 16 <img src="./materials/tyvek/SEM/tyvek_20nmAu_t... 8.71 +/- 6.24
thickness (mm) weight (g/cm^2) filter efficiency (%) \ thickness (mm) weight (g/cm^2) filter efficiency (%) \
0 0.280 NaN NaN 0 0.280 NaN NaN
1 0.319 NaN NaN 1 0.319 NaN NaN
2 0.292 NaN NaN 2 0.292 NaN NaN
3 0.721 0.0223 NaN 3 0.721 0.0223 NaN
4 1.800 0.0639 NaN 4 1.800 0.0639 NaN
5 1.300 0.0772 NaN 5 1.300 0.0772 NaN
6 1.600 0.0821 NaN 6 1.600 0.0821 NaN
7 1.076 0.0306 NaN 7 1.076 0.0306 NaN
8 0.209 NaN NaN 8 0.209 NaN NaN
9 0.081 0.0020 NaN 9 0.081 0.0020 NaN
10 0.295 0.0064 NaN 10 0.295 0.0064 NaN
11 0.446 0.0143 NaN 11 0.446 0.0143 NaN
12 0.437 0.0152 NaN 12 0.437 0.0152 NaN
13 0.184 0.0067 NaN 13 0.184 0.0067 NaN
14 0.333 NaN NaN 14 0.333 NaN NaN
15 0.137 NaN NaN 15 0.137 NaN NaN
16 0.143 0.0065 NaN 16 0.143 0.0065 NaN
pressure drop (psi) pressure drop (psi)
0 NaN 0 NaN
1 NaN 1 NaN
2 NaN 2 NaN
3 NaN 3 NaN
4 NaN 4 NaN
5 NaN 5 NaN
6 NaN 6 NaN
7 NaN 7 NaN
8 NaN 8 NaN
9 NaN 9 NaN
10 NaN 10 NaN
11 NaN 11 NaN
12 NaN 12 NaN
13 NaN 13 NaN
14 NaN 14 NaN
15 NaN 15 NaN
16 NaN 16 NaN
%% Cell type:code id: tags: %% Cell type:code id: tags:
``` python ``` python
# CAUTION WITH THIS GUY
#
#
# wrrite to file # wrrite to file
index_html = open("./index.html", mode="a") index_html = open("./index.html", mode="a")
index_html.write(html_table) index_html.write(html_table)
index_html.close() index_html.close()
``` ```
%% Cell type:code id: tags: %% Cell type:code id: tags:
``` python ``` python
``` ```
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment