Permalink
Browse files

Merge remote-tracking branch 'mineo/cluster-analyze'

  • Loading branch information...
2 parents a369dba + 0cdd05c commit 1ac0b64d01f9cc3dcd5c722e9aa13b1b77c13056 @lalinsky lalinsky committed Jun 18, 2012
Showing with 2 additions and 5 deletions.
  1. +2 −5 picard/cluster.py
View
@@ -110,7 +110,7 @@ def can_edit_tags(self):
def can_analyze(self):
"""Return if this object can be fingerprinted."""
- return True
+ return any([_file.can_analyze() for _file in self.files])
def can_autotag(self):
return True
@@ -277,9 +277,6 @@ def lookup_metadata(self):
def can_edit_tags(self):
return False
- def can_analyze(self):
- return len(self.files) > 0
-
def can_autotag(self):
return len(self.files) > 0
@@ -302,7 +299,7 @@ def can_save(self):
return len(self) > 0
def can_analyze(self):
- return len(self) > 0
+ return any([cluster.can_analyze() for cluster in self])
def can_autotag(self):
return len(self) > 0

0 comments on commit 1ac0b64

Please sign in to comment.