Script execution
This commit is contained in:
@@ -37,3 +37,10 @@ finally:
|
||||
t.close()
|
||||
q.close()
|
||||
V.close()
|
||||
try:
|
||||
i_max = charge.index(max(charge))
|
||||
min_i, max_i = max(i_max-10, 0), min(i_max+11, len(p))
|
||||
(delay_charge_max, charge_max, delay_charge_fit, charge_fit) = extremum(delay[min_i:max_i], charge[min_i:max_i])
|
||||
print delay_charge_max, charge_max
|
||||
except:
|
||||
raise Exception("Fit failure")
|
||||
|
||||
Reference in New Issue
Block a user