Difference: StewartBoogertCodeSnippets (1 vs. 3)

Revision 330 Jan 2016 - StewartBoogert

Line: 1 to 1
 
META TOPICPARENT name="StewartBoogertAstronomy"
Changed:
<
<
>
>
  <noautolink>
Line: 14 to 9
 

Python

Changed:
<
<
>
>
 
Changed:
<
<
class pecData():
  Class to store and manipulate a PEC Data
>
>
class pecData():
  Class to store and manipulate a PEC Data
 
Changed:
<
<
def __init__(self, filename):
>
>
def __init__(self, filename):
 
Changed:
<
<
def loadData(self, filename):
  Load Data from File and calculate the PEC Sum
>
>
def loadData(self, filename):
  Load Data from File and calculate the PEC Sum
 
Changed:
<
<
def totalSegments(self):
  Return the total number of segments in the PEC Data
>
>
def totalSegments(self):
  Return the total number of segments in the PEC Data
 
Changed:
<
<
def sumAtSegment(self, segment):
  Return the current sum at segment given in the argument
>
>
def sumAtSegment(self, segment):
  Return the current sum at segment given in the argument
 
Changed:
<
<
def plotData(self, raw = False, clear = False, newFig = False):
  Plot PEC Sum Data.
    raw = True -> Plot Raw Data
    clear = True -> Clear the current figure before plotting
    newFig = True -> Creates new figure for plotting (overrides clear)
>
>
def plotData(self, raw = False, clear = False, newFig = False):
  Plot PEC Sum Data.
    raw = True -> Plot Raw Data
    clear = True -> Clear the current figure before plotting
    newFig = True -> Creates new figure for plotting (overrides clear)
 
Changed:
<
<
class pecList():   Class to store several PEC Data files and process them
>
>
class pecList():   Class to store several PEC Data files and process them
 
Changed:
<
<
def __init__(self):
>
>
def __init__(self):
 
Changed:
<
<
def loadPEC(self, pecname, filename):
  Add PEC Data file to list
>
>
def loadPEC(self, pecname, filename):
  Add PEC Data file to list
 
Changed:
<
<
def removePEC(self, pecname):
  Remove PEC Data file from list
>
>
def removePEC(self, pecname):
  Remove PEC Data file from list
 
Changed:
<
<
def update(self):
  Internal, update list
>
>
def update(self):
  Internal, update list
 
Changed:
<
<
def verifyPEC(self):
  Internal, verifies consistence in segment number across different PEC Data files
>
>
def verifyPEC(self):
  Internal, verifies consistence in segment number across different PEC Data files
 
Changed:
<
<
def statistics(self, plot = True, plotRaw = False, plotAll = False):
  Calculates the statistics of current PEC Data files in the list if plot, plot final results
  plotRaw also plot raw data and plotAll plots original points as well
>
>
def statistics(self, plot = True, plotRaw = False, plotAll = False):
  Calculates the statistics of current PEC Data files in the list if plot, plot final results
  plotRaw also plot raw data and plotAll plots original points as well
 
Changed:
<
<
def plotAvg(self, raw = False, clear = False, newFig = False):
  Plot PEC Sum Data Average.
    raw = True -> Plot Raw Data Average
    clear = True -> Clear the current figure before plottin
    newFig = True -> Creates new figure for plotting (overrides clear)
>
>
def plotAvg(self, raw = False, clear = False, newFig = False):
  Plot PEC Sum Data Average.
    raw = True -> Plot Raw Data Average
    clear = True -> Clear the current figure before plottin
    newFig = True -> Creates new figure for plotting (overrides clear)
 
Changed:
<
<
def showLabels(data, raw = False):
  Internal, creates plot labels
>
>
def showLabels(data, raw = False):
  Internal, creates plot labels
 

Revision 202 Sep 2013 - PedroPaiva

Line: 1 to 1
 
META TOPICPARENT name="StewartBoogertAstronomy"

<noautolink>

Code Snippets

Python


-- PedroDeCarvalhoPaiva - 31 Aug 2013

META FILEATTACHMENT attachment="pec.py.txt" attr="" comment="PEC Analysis Code" date="1377958510" name="pec.py.txt" path="pec.py" size="4994" user="wxqv038" version="1"
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2021 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding RHUL Physics Department TWiki? Send feedback