old_contents: # ActivitySim
  # Copyright (C) 2014-2015 Synthicity, LLC
  # See full license in LICENSE.txt.
  
  import numpy as np
  
  
  class Skim(object):
      """
      Container for skim arrays.
  
      Parameters
      ----------
      data : 2D array
      offset : int, optional
          An optional offset that will be added to origin/destination
          values to turn them into array indices.
          For example, if zone IDs are 1-based, an offset of -1
          would turn them into 0-based array indices.
  
      """
      def __init__(self, data, offset=None):
  
          if not isinstance(data, np.ndarray):
              data = np.array(data)
  
          self.data = data
          self.offset = offset
  
      def get(self, orig, dest):
          """
          Get impedence values for a set of origin, destination pairs.
  
          Parameters
          ----------
          orig : 1D array
          dest : 1D array
  
          Returns
          -------
          values : 1D array
  
          """
          orig = np.asanyarray(orig)
          dest = np.asanyarray(dest)
  
          if self.offset:
              orig = orig + self.offset
              dest = dest + self.offset
  
          return self.data[orig, dest]
  
new_contents: # ActivitySim
  # Copyright (C) 2014-2015 Synthicity, LLC
  # See full license in LICENSE.txt.
  
  import numpy as np
  
  
  class Skim(object):
      """
      Container for skim arrays.
  
      Parameters
      ----------
      data : 2D array
      offset : int, optional
          An optional offset that will be added to origin/destination
          values to turn them into array indices.
          For example, if zone IDs are 1-based, an offset of -1
          would turn them into 0-based array indices.
  
      """
      def __init__(self, data, offset=None):
          self.data = np.asanyarray(data)
          self.offset = offset
  
      def get(self, orig, dest):
          """
          Get impedence values for a set of origin, destination pairs.
  
          Parameters
          ----------
          orig : 1D array
          dest : 1D array
  
          Returns
          -------
          values : 1D array
  
          """
          orig = np.asanyarray(orig)
          dest = np.asanyarray(dest)
  
          if self.offset:
              orig = orig + self.offset
              dest = dest + self.offset
  
          return self.data[orig, dest]
  
subject: use asanyarray instead of isinstance check