You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using allclose_raise to compare two identical TensorMaps where the keys are in different order, an error like the following is raised:
metatensor.torch.operations._utils.NotEqualError: the tensor maps have different keys: inputs to 'allclose' should have the same keys names, got '[o3_lambda, o3_sigma, center_type, neighbor_type]' and '[o3_lambda, center_type, neighbor_type, o3_sigma]'
This is confusing, since the keys are the same -- they're just not in the same order. The easiest fix would be to change the message to "should have the same keys names and the same order". The more convenient fix would be to normalise the order of the keys before comparison.
The text was updated successfully, but these errors were encountered:
When using
allclose_raise
to compare two identicalTensorMap
s where thekeys
are in different order, an error like the following is raised:This is confusing, since the keys are the same -- they're just not in the same order. The easiest fix would be to change the message to "should have the same keys names and the same order". The more convenient fix would be to normalise the order of the keys before comparison.
The text was updated successfully, but these errors were encountered: