Index: /branches/czw_branch/20170908/tools/hsc/register_directory.pl
===================================================================
--- /branches/czw_branch/20170908/tools/hsc/register_directory.pl	(revision 40457)
+++ /branches/czw_branch/20170908/tools/hsc/register_directory.pl	(revision 40458)
@@ -20,4 +20,6 @@
 my %registered_exp = ();
 
+get_registered_exp_names();
+
 my $directory = shift(@ARGV);
 
@@ -37,5 +39,5 @@
     if (($base % 2) != 0) { next; }
     if (exists($registered_exp{$exp_name})) { next; }
-     
+#    print "# $exp_name\n";
     my $set1 = "${directory}/HSCA${base}??.fits";
     $base =~ s/2$/3/;
@@ -55,5 +57,5 @@
     }
     else {
-	print "echo 'exp_name HSCA${base} does not have the correct count of image files.'\n";
+	print "echo 'exp_name HSCA${base} does not have the correct count of image files ($count).'\n";
     }
 }
