Skip to content

Commit

Permalink
LIMS-1463: Combine if clauses
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Williams committed Oct 9, 2024
1 parent f1bc51d commit 1b8c2b3
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions api/src/Page/DC.php
Original file line number Diff line number Diff line change
Expand Up @@ -992,13 +992,12 @@ function _data_collections($single = null)
$dc['DCT'] = 'Data Collection';
}

if ($dc['DCT'] == 'Mesh' || $dc['DCT'] == 'Mesh3D') {
if ($dc['DCT'] == 'Mesh' || $dc['DCT'] == 'Mesh3D' ||
($dc['DCT'] != 'Serial Fixed' && $dc['DCT'] != 'Serial Jet' && $dc['AXISRANGE'] == 0 && $dc['NI'] > 1)
) {
$dc['DCT'] = 'Grid Scan';
$dc['TYPE'] = 'grid';
}
if ($dc['DCT'] != 'Serial Fixed' && $dc['DCT'] != 'Serial Jet' && $dc['AXISRANGE'] == 0 && $dc['NI'] > 1) {
$dc['TYPE'] = 'grid';
}
//$this->profile('dc');

// Edge Scans
Expand Down

0 comments on commit 1b8c2b3

Please sign in to comment.