Changeset 33415 for branches/meh_branches/ppstack_test/tools/refstacktool
- Timestamp:
- Mar 5, 2012, 5:19:48 PM (14 years ago)
- Location:
- branches/meh_branches/ppstack_test
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
tools/refstacktool (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/meh_branches/ppstack_test
- Property svn:mergeinfo changed
-
branches/meh_branches/ppstack_test/tools/refstacktool
r32080 r33415 103 103 my $n_exps = 0; 104 104 my $exp_id_last = 0; 105 106 my %exp_hash; 105 107 while (my $exp = $stmt->fetchrow_hashref()) { 106 108 # avoid exposures processed multiple times 107 109 my $exp_id = $exp->{exp_id}; 108 next if $exp_id_last == $exp_id; 110 111 if ($exp_hash{$exp_id}) { 112 # print "skipping duplicate for $exp_id\n"; 113 next; 114 } 115 # This doesn't work since we are ordered by fwhm_major 116 # if ($exp_id_last == $exp_id) { 117 # print "skipping duplicate for $exp_id\n"; 118 # } 109 119 $exp_id_last = $exp_id; 120 121 $exp_hash{$exp_id} = 1; 110 122 111 123 $n_exps++;
Note:
See TracChangeset
for help on using the changeset viewer.
