Author: bugman
Date: Tue Mar 10 18:00:53 2015
New Revision: 27803
URL: http://svn.gna.org/viewcvs/relax?rev=27803&view=rev
Log:
Python 3 improvement for the rdc.corr_plot and pcs.corr_plot user functions.
The world view is now set in floating point numbers. In Python 2, the
math.ceil() and math.floor()
functions return floats, whereas in Python 3 these functions return integers.
The behaviour is now
consistent in both Python versions, fixing a few system tests.
Modified:
trunk/pipe_control/pcs.py
trunk/pipe_control/rdc.py
Modified: trunk/pipe_control/pcs.py
URL:
http://svn.gna.org/viewcvs/relax/trunk/pipe_control/pcs.py?rev=27803&r1=27802&r2=27803&view=diff
==============================================================================
--- trunk/pipe_control/pcs.py (original)
+++ trunk/pipe_control/pcs.py Tue Mar 10 18:00:53 2015
@@ -500,8 +500,8 @@
size = len(data)
# Round the data limits.
- max_pcs = ceil(max_pcs)
- min_pcs = floor(min_pcs)
+ max_pcs = float(ceil(max_pcs))
+ min_pcs = float(floor(min_pcs))
# Only one data set.
data = [data]
Modified: trunk/pipe_control/rdc.py
URL:
http://svn.gna.org/viewcvs/relax/trunk/pipe_control/rdc.py?rev=27803&r1=27802&r2=27803&view=diff
==============================================================================
--- trunk/pipe_control/rdc.py (original)
+++ trunk/pipe_control/rdc.py Tue Mar 10 18:00:53 2015
@@ -548,8 +548,8 @@
size = len(data)
# Round the data limits.
- max_rdc = ceil(max_rdc)
- min_rdc = floor(min_rdc)
+ max_rdc = float(ceil(max_rdc))
+ min_rdc = float(floor(min_rdc))
# Only one data set.
data = [data]
_______________________________________________
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