Private
Public Access
1
0

some bug fixes

This commit is contained in:
Sander Roosendaal
2019-09-22 08:56:15 +02:00
parent f09f560f1e
commit 4063b88d53
3 changed files with 35 additions and 6 deletions

View File

@@ -1104,7 +1104,11 @@ def dataprep(rowdatadf,id=0,bands=True,barchart=True,otwpower=True,
if barchart:
# time increments for bar chart
time_increments = rowdatadf.loc[:,' ElapsedTime (sec)'].diff()
time_increments[0] = time_increments[1]
try:
time_increments.iloc[0] = time_increments.iloc[1]
except (KeyError, IndexError):
time_increments.iloc[1] = 1.
time_increments = 0.5*time_increments+0.5*np.abs(time_increments)
x_right = (t2+time_increments.apply(lambda x:timedeltaconv(x)))