@@ -33,17 +33,17 @@ class Experiment:
3333 list of operating conditions should be passed in. Each operating condition should
3434 be of the form "Do this for this long" or "Do this until this happens". For example,
3535 "Charge at 1 C for 1 hour", or "Charge at 1 C until 4.2 V", or "Charge at 1 C for 1
36- hour or until 4.2 V at 25oC". The instructions can be of the form
37- "(Dis)charge at x A/C/W", "Rest", or "Hold at x V until y A at z degC". The running
36+ hour or until 4.2 V at 25oC". The instructions can be of the form
37+ "(Dis)charge at x A/C/W", "Rest", or "Hold at x V until y A at z degC". The running
3838 time should be a time in seconds, minutes or
3939 hours, e.g. "10 seconds", "3 minutes" or "1 hour". The stopping conditions should be
4040 a circuit state, e.g. "1 A", "C/50" or "3 V". The parameter drive_cycles is
4141 mandatory to run drive cycle. For example, "Run x", then x must be the key
42- of drive_cycles dictionary. The temperature should be provided after the stopping
43- condition but before the period, e.g. "1 A at 25 degC (1 second period)". It is
42+ of drive_cycles dictionary. The temperature should be provided after the stopping
43+ condition but before the period, e.g. "1 A at 25 degC (1 second period)". It is
4444 not essential to provide a temperature and a global temperature can be set either
45- from within the paramter values of passing a temperature to this experiment class.
46- If the temperature is not specified in a line, then the global temperature is used,
45+ from within the paramter values of passing a temperature to this experiment class.
46+ If the temperature is not specified in a line, then the global temperature is used,
4747 even if another temperature has been set in an earlier line.
4848
4949 Parameters
@@ -217,7 +217,7 @@ def read_string(self, cond, drive_cycles):
217217 # Read instructions
218218 if "Run" in cond :
219219 cond_list = cond .split ()
220- if not "degC" in cond and not "oC" in cond :
220+ if "degC" not in cond and "oC" not in cond :
221221 if "at" in cond :
222222 raise ValueError (f"Instruction must be of the form: { examples } " )
223223 dc_types = ["(A)" , "(V)" , "(W)" ]
0 commit comments