yeh_tm.remove_needle

yeh_tm.remove_needle(S, pos)

Remove a layer from the layer stack in the given System from the given position. If adjacent layers are equal, combine into one thicker layer.

Parameters:
  • S (System) – System class.
  • pos (int) – Position of the layer to be removed (0..N-1).
Returns:

S without the specified layer.