Private
Public Access
1
0

values in CP notification email

This commit is contained in:
Sander Roosendaal
2017-07-03 22:07:07 +02:00
parent 4f832235f6
commit cfd6c1da7a
5 changed files with 29 additions and 15 deletions

View File

@@ -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',