Skip to content

Commit

Permalink
feat: added length to moutbar results (#307)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sinrefvol authored Jul 3, 2024
1 parent 1962062 commit caefa06
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/api/generated/models/GetObjectResultsDto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export type GetObjectResultsDto = {
objectResultFiles: Array<GetObjectResultsFileDto>;
segmentWidth: ObjectEstimationResultDto;
width: ObjectEstimationResultDto;
length: ObjectEstimationResultDto;
segmentHeight: ObjectEstimationResultDto;
height: ObjectHeightDto;
box: Array<CoordinateDto>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,20 @@ export const ChannelResultTable = ({
</Styled.DataCell>
<Styled.DataCell>{data.height?.count}</Styled.DataCell>
</Table.Row>
{computeMethod === 'Mouthbar' ? (
<Table.Row>
<Styled.ColumnCell>{computeMethod} length</Styled.ColumnCell>
<Styled.DataCell>
{roundResultString(data.length?.mean)}
</Styled.DataCell>
<Styled.DataCell>
{roundResultString(data.length?.sd)}
</Styled.DataCell>
<Styled.DataCell>{data.length?.count}</Styled.DataCell>
</Table.Row>
) : (
<></>
)}
</Table.Body>
</Styled.Table>
);
Expand Down

0 comments on commit caefa06

Please sign in to comment.