Author: bugman Date: Mon Mar 2 15:34:59 2015 New Revision: 27724 URL: http://svn.gna.org/viewcvs/relax?rev=27724&view=rev Log: Fix for the rdc.write user function. The check for the missing rdc_data_types variable in the interatomic containers is now more comprehensive and checks for the presence of the alignment ID. Modified: trunk/pipe_control/rdc.py Modified: trunk/pipe_control/rdc.py URL: http://svn.gna.org/viewcvs/relax/trunk/pipe_control/rdc.py?rev=27724&r1=27723&r2=27724&view=diff ============================================================================== --- trunk/pipe_control/rdc.py (original) +++ trunk/pipe_control/rdc.py Mon Mar 2 15:34:59 2015 @@ -1338,7 +1338,7 @@ # Handle the missing rdc_data_types variable. data_type = None - if hasattr(interatom, 'rdc_data_types'): + if hasattr(interatom, 'rdc_data_types') and align_id in interatom.rdc_data_types: data_type = interatom.rdc_data_types[align_id] # The value.