diff --git a/README.md b/README.md index 0693fe7e..7f89dd3d 100755 --- a/README.md +++ b/README.md @@ -263,4 +263,4 @@ Gröhl, Janek, Kris K. Dreher, Melanie Schellenberg, Tom Rix, Niklas Holzwarth, This project has received funding from the European Research Council (ERC) under the European Union’s Horizon 2020 research and innovation programme (grant agreement No. [101002198]). -![ERC](docs/source/images/LOGO_ERC-FLAG_EU_.jpg "ERC") +![ERC](https://github.com/IMSY-DKFZ/simpa/raw/main/docs/source/images/LOGO_ERC-FLAG_EU_.jpg "ERC") diff --git a/simpa/utils/settings.py b/simpa/utils/settings.py index 447ff48d..9d9d496f 100644 --- a/simpa/utils/settings.py +++ b/simpa/utils/settings.py @@ -69,6 +69,11 @@ def __delitem__(self, key): except KeyError: raise KeyError("The key '{}' is not in the Settings dictionary".format(key)) from None + def get(self, key, default=None): + if key in self: + return self[key] + return default + def get_volume_dimensions_voxels(self): """ returns: tuple