ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/ns_dev/Python/NinoCode/RandomCodeRequests/felicia_code.txt
Revision: 8
Committed: Sat May 5 04:21:19 2012 UTC (13 years, 10 months ago) by ninoborges
Content type: text/plain
File size: 745 byte(s)
Log Message:
Initial Import

File Contents

# User Rev Content
1 ninoborges 8 Felicia asked me to make an XFS file, which just enumerates the begno,endno,prodbeg,prodend and
2     then matcvhes each page of each to the other.
3    
4    
5     >>> outputFile = open(r"\\lisdisdss01\ercdis12\admin\share\manny\wip\felicia\KW_prod_export.xfs",'w')
6     >>> contents = open(r"\\lisdisdss01\ercdis12\admin\share\manny\wip\felicia\KW_prod_export.dat").readlines()
7     >>> for line in contents:
8     ... line = line.replace("\n","")
9     ... begno, endno,begprod,endprod = line.split(",")
10     ... begnoList = FixBatesRange_func.EnumerateBates(begno,endno)
11     ... prodList = FixBatesRange_func.EnumerateBates(begprod, endprod)
12     ... masterlist = zip(begnoList,prodList)
13     ... for i in masterlist:
14     ... outputFile.write("%s,%s\n"% i)
15     ...
16     >>> outputFile.close()