Skip to content

Commit c00e272

Browse files
committed
Add basic MS verifier
1 parent 78a90c9 commit c00e272

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

utility/verify_ms.sh

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
MS=$1
2+
RESULT=$(python -c "import casacore.tables as ct; ct.table(\"$MS\")" 2>/dev/null)
3+
if ! grep -q "Successful readonly open" <<< "$RESULT"; then
4+
echo "$MS is NOT a valid MeasurementSet."
5+
fi

0 commit comments

Comments
 (0)