copyxnat.xnat_backend.utis module

Utility functions

class copyxnat.xnat_backend.utis.Utils[source]

Bases: object

Utility functions

static combine_dicts(dict_1, dict_2)[source]

Creates a new dictionary which is the union of two dictionaries with a shallow copy of the elements

static optional_params(params)[source]

Creates a new dictionary by making a shallow copy of an existing dictionary, but exclude entries from the final dictionary if their value is None