docs: def n_func(self):
          '''
          function: a function that when passed a `x` and `y` values,
              returns the refractive index profile of the structure,
              interpolating if necessary.
          '''
          return interpolate.interp2d(self.x, self.y, self.n)