anndict.AdataDict.check_structure#
- AdataDict.check_structure(input_dict)[source]#
Check if an
input_dicthas the same structure and keys as theAdataDict. Raises an error at the first missing key encountered. If no errors are raised, the structures match.- Parameters:
- input_dict
dict A dictionary to be compared with the
AdataDict.
- input_dict
- Return type:
bool- Returns:
Trueif the structures match (based on both keys and nesting),Falseotherwise.