You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One way now to get voltage and current vs time for a specific step is to use something alike:
# first find the correct stepcharge_steps=c.get_step_numbers(steptype="charge")
cycle=1raw=c.cell.rawcharge_step_cycle_one=charge_steps[cycle][0] # selecting only the first charge stepdf_absolutely_all=raw[(raw.cycle_index==cycle) & (raw.step_index==charge_step_cycle_one)]
df_all=df_absolutely_all[["step_time", "current", "voltage"]]
Another way is to use the sget_something methods:
# first find the correct stepcharge_steps=c.get_step_numbers(steptype="charge")
cycle=1raw=c.cell.rawcharge_step_cycle_one=charge_steps[cycle][0] # selecting only the first charge steptimestamp=c.sget_timestamp(cycle, charge_step_cycle_one )
voltage=c.sget_voltage(cycle, charge_step_cycle_one )
df_all=pd.concat([timestamp, voltage], keys=["time", "voltage"], axis=1)
It would be nice to have one method that takes as input the cycle number, the type of step (e.g. "charge") (or maybe a list of steps), and optional settings like if you would like to select only one step (in case there are more "charge" steps in that cycle), and also if the time should start from zero, or as it is in the raw data, or a starting value given when calling the function.
The text was updated successfully, but these errors were encountered:
One way now to get voltage and current vs time for a specific step is to use something alike:
Another way is to use the
sget_something
methods:It would be nice to have one method that takes as input the cycle number, the type of step (e.g. "charge") (or maybe a list of steps), and optional settings like if you would like to select only one step (in case there are more "charge" steps in that cycle), and also if the time should start from zero, or as it is in the raw data, or a starting value given when calling the function.
The text was updated successfully, but these errors were encountered: