@staticmethod
def _populate_dictionary(theta, dictionary_in):
    """Populate the dictionary of free parameters."""
    dictionary = dictionary_in.copy()
    for key in dictionary.keys():
        if isinstance(dictionary[key], int):
            if not isinstance(dictionary[key], bool):
                dictionary[key] = theta[dictionary[key]]
    return dictionary
