docstr: Compute the scalar field values of a vertex object `v`.
  
  Parameters
  ----------
  v : VertexBase or VertexScalarField object
docstr_tok: ["Compute","the","scalar","field","values","of","a","vertex","object","`","v","`",".","Parameters","--","--","--","--","--","v",":","VertexBase","or","VertexScalarField","object"]
code: def compute_sfield(self, v):
      """Compute the scalar field values of a vertex object `v`.
  
      Parameters
      ----------
      v : VertexBase or VertexScalarField object
      """
      try:
          v.f = self.field(v.x_a, *self.field_args)
          self.nfev += 1
      except AttributeError:
          v.f = np.inf
          # logging.warning(f"Field function not found at x = {self.x_a}")
      if np.isnan(v.f):
          v.f = np.inf
  
imports: import collections
  from abc import ABC, abstractmethod
  import numpy
  from scipy._lib._util import MapWrapper
label_desc: Use image node_id 6 for calling the VertexCacheField obj's underlying member method code with example usage: obj.compute_sfield(v) without return types