new columns

This commit is contained in:
Pritimay Sarkar
2023-11-16 14:28:37 +05:30
parent 367c36e3f8
commit 707e338d3a

View File

@@ -48,21 +48,25 @@ const Samples = () => {
<table id="samples-table">
<tr>
<th>Sample Name</th>
<th>Class</th>
<th>Device</th>
<th>led1Average</th>
<th>abs1</th>
{/* <th>led2Average</th> */}
<th>led3Average</th>
<th>Dev ratio</th>
<th>abs2</th>
<th>abs3</th>
<th>PDR</th>
<th>Time</th>
</tr>
{samples.map((sample, index) => (
<tr key={index} className='samples-table-tr'>
<td>{sample.name}</td>
<td>{sample.name || sample._id}</td>
<td>{sample.prdClassification}</td>
<td>{sample.deviceId}</td>
<td>{sample.led1Average}</td>
<td>{sample?.abs1?.toFixed(4)}</td>
{/* <td>{sample.led2Average || 'NA'}</td> */}
<td>{sample.led3Average || 'NA'}</td>
<td>{sample.deviceRatio}</td>
<td>{sample?.abs2?.toFixed(4) || 'NA'}</td>
<td>{sample?.abs3?.toFixed(4) || 'NA'}</td>
<td>{sample?.predictedDenovixRatio?.toFixed(4)}</td>
<td>{sample.testTime}</td>
</tr>
))}