values in CP notification email
This commit is contained in:
@@ -77,8 +77,8 @@ def cpfit(powerdf):
|
||||
|
||||
def getlogarr(maxt):
|
||||
maxlog10 = np.log10(maxt-5)
|
||||
logarr = np.log10(5.)+np.arange(50)*maxlog10/50.
|
||||
logarr = [int(10.**(la)) for la in logarr]
|
||||
logarr = np.arange(50)*maxlog10/50.
|
||||
logarr = [5+int(10.**(la)) for la in logarr]
|
||||
logarr = pd.Series(logarr)
|
||||
logarr.drop_duplicates(keep='first',inplace=True)
|
||||
|
||||
@@ -88,7 +88,7 @@ def getlogarr(maxt):
|
||||
def getsinglecp(df):
|
||||
thesecs = df['TimeStamp (sec)'].max()-df['TimeStamp (sec)'].min()
|
||||
if thesecs != 0:
|
||||
maxt = 2*thesecs
|
||||
maxt = 1.05*thesecs
|
||||
else:
|
||||
maxt = 1000.
|
||||
|
||||
@@ -152,7 +152,6 @@ def getcp(dfgrouped,logarr):
|
||||
dt = pd.Series(dt)
|
||||
cpw = pd.Series(cpw)
|
||||
if len(dt):
|
||||
|
||||
cpvalues = griddata(dt.values,
|
||||
cpw.values,
|
||||
logarr,method='linear',
|
||||
|
||||
Reference in New Issue
Block a user