desc.perturbations.get_deltas

desc.perturbations.get_deltas(things1, things2)[source]

Compute differences between parameters for perturbations.

Parameters:
  • things1 (dict) – should be dictionary with keys “surface”, “iota”, “pressure”, etc. Values should be objects of the appropriate type (Surface, Profile). Finds deltas for a perturbation going from things1 to things2. Should have same keys in both dictionaries.

  • things2 (dict) – should be dictionary with keys “surface”, “iota”, “pressure”, etc. Values should be objects of the appropriate type (Surface, Profile). Finds deltas for a perturbation going from things1 to things2. Should have same keys in both dictionaries.

Returns:

deltas (dict of ndarray) – deltas to pass in to perturb