This commit is contained in:
Alex A. Naanou 2012-02-29 17:10:16 +04:00
parent 2d6521646a
commit ff06e8f4f0

View File

@ -1,7 +1,7 @@
#======================================================================= #=======================================================================
__version__ = '''0.0.01''' __version__ = '''0.0.01'''
__sub_version__ = '''20120229165907''' __sub_version__ = '''20120229170952'''
__copyright__ = '''(c) Alex A. Naanou 2011''' __copyright__ = '''(c) Alex A. Naanou 2011'''
@ -157,12 +157,13 @@ if __name__ == '__main__':
raws = [e for e in l if e[-1] == RAW] raws = [e for e in l if e[-1] == RAW]
if len(raws) > 1: if len(raws) > 1:
print 'duplicates: %s (%sx)...' % (name, len(raws)),
# split the group into c seporate groups... # split the group into c seporate groups...
# strategies: # strategies:
# - path proximity (distance) # - path proximity (distance)
# - metadata # - metadata
##!!! ##!!!
print 'duplicates: %s (%sx)' % (name, len(raws)) print 'skipping.'
## raise TypeError, 'found %s RAW files with identical names (%s).' % (len(raws), name) ## raise TypeError, 'found %s RAW files with identical names (%s).' % (len(raws), name)
else: else:
GID_index[GID] = { GID_index[GID] = {
@ -176,7 +177,11 @@ if __name__ == '__main__':
'other': [e for e in l if e[-1] != OR(TIFF, PSD, JPEG, XMP, RAW)], 'other': [e for e in l if e[-1] != OR(TIFF, PSD, JPEG, XMP, RAW)],
} }
print len(GID_index), GID
print GID
print len(GID_index), len([ e for e in lst if e[-1] == RAW])
pprint(GID_index.values()[0])