mailr25039 - /trunk/pipe_control/value.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by tlinnet on August 15, 2014 - 20:30:
Author: tlinnet
Date: Fri Aug 15 20:30:47 2014
New Revision: 25039

URL: http://svn.gna.org/viewcvs/relax?rev=25039&view=rev
Log:
Fix for replacing spaces " " with "_" in header files.

sr #3121(https://gna.org/support/?3121): Support request for replacing space 
in header files for the value.write functions.

Modified:
    trunk/pipe_control/value.py

Modified: trunk/pipe_control/value.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/pipe_control/value.py?rev=25039&r1=25038&r2=25039&view=diff
==============================================================================
--- trunk/pipe_control/value.py (original)
+++ trunk/pipe_control/value.py Fri Aug 15 20:30:47 2014
@@ -554,8 +554,10 @@
             for key in keys:
                 # Add the data and error names if new.
                 if key not in data_names:
-                    data_names.append(key)
-                    error_names.append('sd(%s)' % key)
+                    # Replace all spaces " " with "_".
+                    key_str = key.replace(" ", "_")
+                    data_names.append(key_str)
+                    error_names.append('sd(%s)' % key_str)
 
         # List type data.
         elif isinstance(value, list):




Related Messages


Powered by MHonArc, Updated Mon Aug 18 10:20:02 2014