grapa.internal.curve_utils.update_graph_values_keys_condition

grapa.internal.curve_utils.update_graph_values_keys_condition(graph: Graph, *values, keys: list | None = None, also_attr=None, also_vals=None) bool

Similar as update_values_keys, but for all curves inside the provided graph, and not on the Graph itself.

Parameters:
  • graph – Graph object, will apply to all Curves within

  • args – value1, value2, …

  • keys – list of keys [‘key1’, ‘key2’, …]. list[str]

  • also_attr – list of attribute keys

  • also_vals – list, same len as also_attr. Test each curve in graph, only perfom modifications if curve.attr(also_attr[i]) == also_vals[i], for all i in range