py21cmfast.utils ================ .. py:module:: py21cmfast.utils .. autoapi-nested-parse:: Utilities for interacting with 21cmFAST data structures. .. !! processed by numpydoc !! Functions --------- .. autoapisummary:: py21cmfast.utils.recursive_difference py21cmfast.utils.show_references Module Contents --------------- .. py:function:: recursive_difference(dct1, dct2, cmprules = None) Return the recursive difference between two dicts. This is an *asymmetric* difference, i.e. we only end with values from dct1, and only if it is not exactly the same as in dct2. Entries in dct2 that are not in dct1 are ignored. Only dictionaries (and their subclasses) are recursed -- all other containers are treated as primitive types to be compared. If you need to recurse into custom structures, first "unstructure" your objects into dictionaries (e.g. with ``attrs.asdict(obj)``) then use this function. .. !! processed by numpydoc !! .. py:function:: show_references(inputs, print_to_stdout=True) Print out all the relevant references for a simulation based on input parameters. .. !! processed by numpydoc !!