compareConfigs¶
- lsst.pex.config.compareConfigs(name, c1, c2, shortcut=True, rtol=1e-08, atol=1e-08, output=None)¶
- Compare two - lsst.pex.config.Configinstances for equality.- This function is a helper for - lsst.pex.config.Config.compare.- Parameters:
- namestr
- Name to use when reporting differences, typically created by - getComparisonName.
- v1lsst.pex.config.Config
- Left-hand side config to compare. 
- v2lsst.pex.config.Config
- Right-hand side config to compare. 
- shortcutbool, optional
- If - True, return as soon as an inequality is found. Default is- True.
- rtolfloat, optional
- Relative tolerance for floating point comparisons. 
- atolfloat, optional
- Absolute tolerance for floating point comparisons. 
- outputcallable, optional
- A callable that takes a string, used (possibly repeatedly) to report inequalities. For example: - print.
 
- name
- Returns:
- areEqualbool
- Truewhen the two- lsst.pex.config.Configinstances are equal.- Falseif there is an inequality.
 
- areEqual
 - See also - Notes - Floating point comparisons are performed by - numpy.allclose.- If - c1or- c2contain- RegistryFieldor- ConfigChoiceFieldinstances, unselected- Configinstances will not be compared.