mailr5767 - /1.3/opendx/base_map.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:44:
Author: bugman
Date: Wed Apr 16 16:44:07 2008
New Revision: 5767

URL: http://svn.gna.org/viewcvs/relax?rev=5767&view=rev
Log:
The open_write_file force arg has been converted to a bool.


Modified:
    1.3/opendx/base_map.py

Modified: 1.3/opendx/base_map.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/opendx/base_map.py?rev=5767&r1=5766&r2=5767&view=diff
==============================================================================
--- 1.3/opendx/base_map.py (original)
+++ 1.3/opendx/base_map.py Wed Apr 16 16:44:07 2008
@@ -144,7 +144,7 @@
         print "\nCreating the OpenDX .cfg program configuration file."
 
         # Open the file.
-        config_file = open_write_file(file_name=self.file_prefix+".cfg", 
dir=self.dir, force=1)
+        config_file = open_write_file(file_name=self.file_prefix+".cfg", 
dir=self.dir, force=True)
 
         # Get the text of the configuration file.
         text = self.config_text()
@@ -163,7 +163,7 @@
         print "\nCreating the OpenDX .general file."
 
         # Open the file.
-        general_file = 
open_write_file(file_name=self.file_prefix+".general", dir=self.dir, force=1)
+        general_file = 
open_write_file(file_name=self.file_prefix+".general", dir=self.dir, 
force=True)
 
         # Get the text of the configuration file.
         text = self.general_text()
@@ -182,7 +182,7 @@
         print "\nCreating the map."
 
         # Open the file.
-        map_file = open_write_file(file_name=self.file_prefix, dir=self.dir, 
force=1)
+        map_file = open_write_file(file_name=self.file_prefix, dir=self.dir, 
force=True)
 
         # Generate and write the text of the map.
         self.map_text(map_file)
@@ -213,8 +213,8 @@
         print "\nCreating the OpenDX .general and data files for the given 
point."
 
         # Open the files.
-        point_file = open_write_file(file_name=self.point_file, 
dir=self.dir, force=1)
-        point_file_general = 
open_write_file(file_name=self.point_file+".general", dir=self.dir, force=1)
+        point_file = open_write_file(file_name=self.point_file, 
dir=self.dir, force=True)
+        point_file_general = 
open_write_file(file_name=self.point_file+".general", dir=self.dir, 
force=True)
 
         # Calculate the coordinate values.
         coords = self.inc * (self.point - self.bounds[:, 0]) / 
(self.bounds[:, 1] - self.bounds[:, 0])
@@ -240,7 +240,7 @@
         print "\nCreating the OpenDX .net program file."
 
         # Open the file.
-        program_file = open_write_file(file_name=self.file_prefix+".net", 
dir=self.dir, force=1)
+        program_file = open_write_file(file_name=self.file_prefix+".net", 
dir=self.dir, force=True)
 
         # Create the strings associated with the map axes.
         self.map_axes()




Related Messages


Powered by MHonArc, Updated Wed Apr 16 17:00:20 2008