code: def well(self, idx) -> Well:
          
          if isinstance(idx, int):
              res = self._wells[idx]
          elif isinstance(idx, str):
              res = self.wells_by_index()[idx]
          else:
              res = NotImplemented
          return res
docs: Deprecated---use result of `wells` or `wells_by_index`