This week's book giveaway is in the Go forum.
We're giving away four copies of Head First Go and have Jay McGavren on-line!
See this thread for details.
Win a copy of Head First Go this week in the Go forum!

itsbinsha sha

+ Follow
since Oct 28, 2018
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by itsbinsha sha

I am trying to implement a GUI app for graph plotting which should show graph as slideshow so that data can be visualized clearly for the users. Currently whole content of the file is read and plotted as a single figure,but I show to split the figure and show as slideshow ie first i want to plot first n set of data then next set likewise i wish  to plot till the end of the file.
I have text file contains data as:

What I have tried is:

Please help to fix this. I will be thankful,if anyone help me out there.
2 weeks ago
My input is

What I have tried is:

import re

fileName=input("Enter Input File Name: ")
OutName=input("Enter Output File Name: ")

class Calculate:
def freqCal(self,string,freq):
       if (obj.pFreqCount <=3):
           val = float(string)
           res = val + freq
           string =str(res)+"\n"

           obj.pFreqCount = 0
           obj.pFreqFlag = 0
       obj.pFreqCount += 1
def write(self,string):
for line in f1.readlines():    
   if re.match(r'PFREQ1', string):
       obj.pFreqFlag = 1
   elif obj.pFreqFlag == 1:

   elif re.match(r'RDAMP1', string):

Here RDAMP1 is not printing after string search in file. Please help to solve this.Please help me with a code.

4 months ago
My input string from a file is

My required output should be

But Now my input is same as output .The last two zeroes under ANG string to be replaced as 100.0 and 0.3 respectively.Please help me to get the required output.

What I have tried:
4 months ago