mailr5758 - /1.3/opendx/main.py


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

Header


Content

Posted by edward on April 16, 2008 - 16:12:
Author: bugman
Date: Wed Apr 16 16:12:29 2008
New Revision: 5758

URL: http://svn.gna.org/viewcvs/relax?rev=5758&view=rev
Log:
Changed how the OpenDX map type string is matched.


Modified:
    1.3/opendx/main.py

Modified: 1.3/opendx/main.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/opendx/main.py?rev=5758&r1=5757&r2=5758&view=diff
==============================================================================
--- 1.3/opendx/main.py (original)
+++ 1.3/opendx/main.py Wed Apr 16 16:12:29 2008
@@ -23,6 +23,7 @@
 # Python module imports.
 from os import system
 from re import search
+from string import lower
 
 # relax module imports.
 from data import Data as relax_data_store
@@ -70,7 +71,7 @@
     """
 
     # Space type.
-    if search("^[Ii]so3[Dd]", map_type):
+    if lower(map_type) == "iso3d":
         if len(params) != 3:
             raise RelaxError, "The 3D isosurface map requires a 3 parameter 
model."
 




Related Messages


Powered by MHonArc, Updated Wed Apr 16 16:20:10 2008