Author: bugman Date: Thu Jul 15 18:34:04 2010 New Revision: 11309 URL: http://svn.gna.org/viewcvs/relax?rev=11309&view=rev Log: The RDC and PCS back-calculation user fns now add the alignment ID to the RDC and PCS if absent. Again this is to allow both data types to be back-calculated in the absence of measured data. Modified: 1.3/generic_fns/pcs.py 1.3/generic_fns/rdc.py Modified: 1.3/generic_fns/pcs.py URL: http://svn.gna.org/viewcvs/relax/1.3/generic_fns/pcs.py?rev=11309&r1=11308&r2=11309&view=diff ============================================================================== --- 1.3/generic_fns/pcs.py (original) +++ 1.3/generic_fns/pcs.py Thu Jul 15 18:34:04 2010 @@ -57,6 +57,16 @@ align_ids = [align_id] else: align_ids = cdp.align_ids + + # Add the ID to the PCS IDs, if needed. + for align_id in align_ids: + # Init. + if not hasattr(cdp, 'pcs_ids'): + cdp.pcs_ids = [] + + # Add the ID. + if align_id not in cdp.pcs_ids: + cdp.pcs_ids.append(align_id) # The weights. weights = ones(cdp.N, float64) / cdp.N Modified: 1.3/generic_fns/rdc.py URL: http://svn.gna.org/viewcvs/relax/1.3/generic_fns/rdc.py?rev=11309&r1=11308&r2=11309&view=diff ============================================================================== --- 1.3/generic_fns/rdc.py (original) +++ 1.3/generic_fns/rdc.py Thu Jul 15 18:34:04 2010 @@ -57,6 +57,16 @@ align_ids = [align_id] else: align_ids = cdp.align_ids + + # Add the ID to the RDC IDs, if needed. + for align_id in align_ids: + # Init. + if not hasattr(cdp, 'rdc_ids'): + cdp.rdc_ids = [] + + # Add the ID. + if align_id not in cdp.rdc_ids: + cdp.rdc_ids.append(align_id) # The weights. weights = ones(cdp.N, float64) / cdp.N