Author: bugman
Date: Tue Nov 11 14:55:38 2014
New Revision: 26523
URL: http://svn.gna.org/viewcvs/relax?rev=26523&view=rev
Log:
Python 3 fixes via 2to3 - the execfile() function does not exist in Python 3.
The command used was:
2to3 -j 4 -w -f execfile .
Modified:
trunk/test_suite/shared_data/frame_order/cam/iso_cone_torsionless/frame_order_matrix.py
trunk/test_suite/shared_data/frame_order/cam/pseudo_ellipse_free_rotor/frame_order_matrix.py
trunk/test_suite/shared_data/frame_order/cam/rotor2/pcs_only/ave_pos_back_calc.py
Modified:
trunk/test_suite/shared_data/frame_order/cam/iso_cone_torsionless/frame_order_matrix.py
URL:
http://svn.gna.org/viewcvs/relax/trunk/test_suite/shared_data/frame_order/cam/iso_cone_torsionless/frame_order_matrix.py?rev=26523&r1=26522&r2=26523&view=diff
==============================================================================
---
trunk/test_suite/shared_data/frame_order/cam/iso_cone_torsionless/frame_order_matrix.py
(original)
+++
trunk/test_suite/shared_data/frame_order/cam/iso_cone_torsionless/frame_order_matrix.py
Tue Nov 11 14:55:38 2014
@@ -9,7 +9,7 @@
# Load the matrices.
-execfile('rotation_matrices.py')
+exec(compile(open('rotation_matrices.py').read(), 'rotation_matrices.py',
'exec'))
# Init the matrix.
matrix = zeros((9, 9), float64)
Modified:
trunk/test_suite/shared_data/frame_order/cam/pseudo_ellipse_free_rotor/frame_order_matrix.py
URL:
http://svn.gna.org/viewcvs/relax/trunk/test_suite/shared_data/frame_order/cam/pseudo_ellipse_free_rotor/frame_order_matrix.py?rev=26523&r1=26522&r2=26523&view=diff
==============================================================================
---
trunk/test_suite/shared_data/frame_order/cam/pseudo_ellipse_free_rotor/frame_order_matrix.py
(original)
+++
trunk/test_suite/shared_data/frame_order/cam/pseudo_ellipse_free_rotor/frame_order_matrix.py
Tue Nov 11 14:55:38 2014
@@ -6,7 +6,7 @@
# Store the rotation matrices.
R = []
-execfile('rotation_matrices.py')
+exec(compile(open('rotation_matrices.py').read(), 'rotation_matrices.py',
'exec'))
R = array(R)
# Init the frame order matrix.
Modified:
trunk/test_suite/shared_data/frame_order/cam/rotor2/pcs_only/ave_pos_back_calc.py
URL:
http://svn.gna.org/viewcvs/relax/trunk/test_suite/shared_data/frame_order/cam/rotor2/pcs_only/ave_pos_back_calc.py?rev=26523&r1=26522&r2=26523&view=diff
==============================================================================
---
trunk/test_suite/shared_data/frame_order/cam/rotor2/pcs_only/ave_pos_back_calc.py
(original)
+++
trunk/test_suite/shared_data/frame_order/cam/rotor2/pcs_only/ave_pos_back_calc.py
Tue Nov 11 14:55:38 2014
@@ -23,7 +23,7 @@
value.set('1H', 'proton', spin_id="@N")
# Load the tensors.
-execfile('../../tensors.py')
+exec(compile(open('../../tensors.py').read(), '../../tensors.py', 'exec'))
# Set up the model.
n_state_model.select_model(model='fixed')
_______________________________________________
relax (http://www.nmr-relax.com)
This is the relax-commits mailing list
[email protected]
To unsubscribe from this list, get a password
reminder, or change your subscription options,
visit the list information page at
https://mail.gna.org/listinfo/relax-commits