keep y axis fixed to 2, csv automation
This commit is contained in:
@@ -11,3 +11,5 @@
|
|||||||
|
|
||||||
http://localhost:3000
|
http://localhost:3000
|
||||||
|
|
||||||
|
|
||||||
|
pyinstaller --noconfirm --noconsole -i "smi.ico" --windowed --clean hemocube.py
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ import glob
|
|||||||
import pandas as pd
|
import pandas as pd
|
||||||
import openpyxl
|
import openpyxl
|
||||||
import os
|
import os
|
||||||
|
from platform import system
|
||||||
|
|
||||||
rootdir = os.getcwd()
|
rootdir = os.getcwd()
|
||||||
|
|
||||||
@@ -45,16 +46,19 @@ def consolidate(curdir):
|
|||||||
|
|
||||||
outfile = rootdir + "/" + os.path.split(curdir)[1] + "_Merged.xlsx"
|
outfile = rootdir + "/" + os.path.split(curdir)[1] + "_Merged.xlsx"
|
||||||
|
|
||||||
df_csv_append.to_excel(outfile, index=False)
|
# df_csv_append.to_excel(outfile, sheet_name="merged_data", index=False)
|
||||||
|
|
||||||
# df_csv_append.to_csv("D8 Merged.csv", index=False)
|
# df_csv_append.to_csv("D8 Merged.csv", index=False)
|
||||||
|
|
||||||
|
writer = pd.ExcelWriter(outfile, engine = 'xlsxwriter')
|
||||||
|
df_csv_append.to_excel(writer, sheet_name = 'x1')
|
||||||
|
df_csv_append.to_excel(writer, sheet_name = 'x2')
|
||||||
|
writer.close()
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
for file in os.listdir(rootdir):
|
for file in os.listdir(rootdir):
|
||||||
d = os.path.join(rootdir, file)
|
curdir = os.path.join(rootdir, file)
|
||||||
if os.path.isdir(d):
|
if os.path.isdir(d):
|
||||||
# print(d)
|
|
||||||
# os.chdir(d)
|
# os.chdir(d)
|
||||||
consolidate(d)
|
consolidate(curdir)
|
||||||
|
|
||||||
@@ -73,7 +73,7 @@ class AbsorbanceGraph extends Component {
|
|||||||
});
|
});
|
||||||
|
|
||||||
x.domain(d3.extent(testData, function (d) { return d.wavelength; }));
|
x.domain(d3.extent(testData, function (d) { return d.wavelength; }));
|
||||||
y.domain([0, d3.max(testData, function (d) { return d.absorbance; })]);
|
y.domain([0, 2]);
|
||||||
|
|
||||||
svg.append("path")
|
svg.append("path")
|
||||||
.data([testData])
|
.data([testData])
|
||||||
|
|||||||
@@ -52,7 +52,7 @@
|
|||||||
margin: 10px;
|
margin: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.person-details {
|
.test-details {
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
/* display: flex; */
|
/* display: flex; */
|
||||||
|
|||||||
@@ -130,7 +130,7 @@ const Devices = () => {
|
|||||||
{!curTestData && <div className='refresh-graph-message'>Select test device, date and person to get the detailed graph. Then, click show button to render graph.</div>}
|
{!curTestData && <div className='refresh-graph-message'>Select test device, date and person to get the detailed graph. Then, click show button to render graph.</div>}
|
||||||
{curTestData?.csvPath && <DeviceGraph url={curTestData?.csvPath} show={showGraph} />}
|
{curTestData?.csvPath && <DeviceGraph url={curTestData?.csvPath} show={showGraph} />}
|
||||||
|
|
||||||
{curTestData && <div className='person-details'>
|
{curTestData && <div className='test-details'>
|
||||||
<table>
|
<table>
|
||||||
<tr>
|
<tr>
|
||||||
<th>key</th>
|
<th>key</th>
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ const router = createBrowserRouter([
|
|||||||
element: <Devices />,
|
element: <Devices />,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: "/insights",
|
path: "/tests/insights",
|
||||||
element: <Devices />,
|
element: <Devices />,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user