| 1 |
ninoborges |
3 |
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() |