omas.different_ods

omas.different_ods(ods1, ods2, ignore_type=False, ignore_empty=False, ignore_keys=[], ignore_default_keys=True, rtol=1e-05, atol=1e-08)[source]

Checks if two ODSs have any difference and returns the string with the cause of the different

Parameters
  • ods1 – first ods to check

  • ods2 – second ods to check

  • ignore_type – ignore object type differences

  • ignore_empty – ignore emptry nodes

  • ignore_keys – ignore the following keys

  • ignore_default_keys – ignores the following keys from the comparison dataset_description.data_entry.user dataset_description.data_entry.run dataset_description.data_entry.machine dataset_description.ids_properties dataset_description.imas_version dataset_description.time ids_properties.homogeneous_time ids_properties.occurrence ids_properties.version_put.data_dictionary ids_properties.version_put.access_layer ids_properties.version_put.access_layer_language

rtol : The relative tolerance parameter

atol : The absolute tolerance parameter

Returns

string with reason for difference, or False otherwise