Index: trunk/tools/make_burntool_pcontrol.pl
===================================================================
--- trunk/tools/make_burntool_pcontrol.pl	(revision 25443)
+++ trunk/tools/make_burntool_pcontrol.pl	(revision 25444)
@@ -137,8 +137,10 @@
 #%science = ('MD' => 1, '3PI' => 1, 'STS' => 1, 'CAL' => 1, 'M31' => 1, 'SS' => 1,
 #	    'ENGINEERING' => 0, 'NULL' => 0, 'Unknown' => 0, ' ' => 0);
-
+# I don't like this bit, but we need to work around the bad values of obs_mode that periodically crop up.
+# This isn't the most robust solution (which would of course be "having trustworthy obs_mode values"), but
+# it'll probably work for now.
 	if ((($science{$obs_mode} == 1)&&($comment !~ /Daytime/))||
 	    (($science{$obs_mode} == 0)&&(
-					  ($comment =~ /MD/)||($comment =~ /3PI/)||
+					  ($comment =~ /MD/)||($comment =~ /ThreePi/)||
 					  ($comment =~ /STS/)||($comment =~ /M31/)||
 					  ($comment =~ /CAL/)||($comment =~ /SS/))))					  
