Author: bugman Date: Wed Jun 6 15:31:09 2012 New Revision: 16697 URL: http://svn.gna.org/viewcvs/relax?rev=16697&view=rev Log: Bug fix for the generic_fns.spectrum.replicated_ids() function for when no replicates exist. This will now return an empty list instead of an error being raised. Modified: branches/uf_redesign/generic_fns/spectrum.py Modified: branches/uf_redesign/generic_fns/spectrum.py URL: http://svn.gna.org/viewcvs/relax/branches/uf_redesign/generic_fns/spectrum.py?rev=16697&r1=16696&r2=16697&view=diff ============================================================================== --- branches/uf_redesign/generic_fns/spectrum.py (original) +++ branches/uf_redesign/generic_fns/spectrum.py Wed Jun 6 15:31:09 2012 @@ -1256,6 +1256,10 @@ # Append the replicated ID. repl.append(cdp.replicates[i][j]) + # Nothing. + if repl == []: + return repl + # Sort the list. repl.sort()