pydpeet.generate_instructions#

pydpeet.generate_instructions(df_primitives, end_condition_map=None, threshold_warnings=5)[source]#

Generate PyBaMM instructions based on the given primitives dataframe and end condition map. Replaces Ramps with AVG Current for time.

Parameters: df_primitives (pd.DataFrame): primitives dataframe end_condition_map (dict): end condition map (key: segment type, value: end condition)

Example: {“CC”: “voltage”, “CV”: “current”, “CP”: “voltage”,”Pause”: “time”}

Returns: list: list of instructions

Parameters:
  • df_primitives (DataFrame)

  • end_condition_map (dict | None)

  • threshold_warnings (int)

Return type:

list[str]