Changeset 77
- Timestamp:
- 11/27/06 23:59:54 (2 years ago)
- Files:
-
- trunk/paircomp/lib/Makefile (modified) (1 diff)
- trunk/paircomp/lib/Makefile.deps (modified) (1 diff)
- trunk/paircomp/lib/NwayComparison.cc (added)
- trunk/paircomp/lib/NwayComparison.hh (added)
- trunk/paircomp/tests/nway.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/paircomp/lib/Makefile
r11 r77 12 12 13 13 COMMON_OBJS=MutableComparison.o ImmutableComparison.o \ 14 algorithms.o algorithms2.o 14 algorithms.o algorithms2.o NwayComparison.o 15 15 16 16 libpaircomp.a: $(COMMON_OBJS) trunk/paircomp/lib/Makefile.deps
r42 r77 23 23 MutableComparison.o: MutableComparison.hh Match.hh /usr/include/assert.h 24 24 MutableComparison.o: Comparison.hh 25 NwayComparison.o: NwayComparison.hh ImmutableComparison.hh Comparison.hh 26 NwayComparison.o: MutableComparison.hh Match.hh /usr/include/assert.h 27 NwayComparison.o: /usr/include/features.h /usr/include/sys/cdefs.h 28 NwayComparison.o: /usr/include/gnu/stubs.h 25 29 algorithms.o: /usr/include/ctype.h /usr/include/features.h 26 30 algorithms.o: /usr/include/sys/cdefs.h /usr/include/gnu/stubs.h trunk/paircomp/tests/nway.py
r75 r77 149 149 o = o * path[i].orient 150 150 151 if o == -1: 152 bot_pos = int(bot_pos) + self.windowsize - 1 153 151 154 # retrieve the actual comparison & matches 152 155 cmp = self.cmps[from_seq][to_seq] … … 157 160 for m in matches: 158 161 bot = m.bot 159 160 # correct for orientation161 if o == -1:162 bot = bot - self.windowsize + 1163 162 164 163 # if we find one, we're golden! … … 318 317 assert p == p2 319 318 319 if run_all: 320 print 'ran all tests' 321 320 322 if __name__ == '__main__': 321 323 test()
