diff --git a/tupak/core/prior.py b/tupak/core/prior.py index 9bdea705e18da8590f9581c898c51a898bf4151e..15d41305dfc70e4bc0c6a9637d4da72680a99743 100644 --- a/tupak/core/prior.py +++ b/tupak/core/prior.py @@ -26,7 +26,11 @@ class PriorSet(dict): dict.__init__(self) if type(dictionary) is dict: self.update(dictionary) - elif filename or type(dictionary) is str: + elif type(dictionary) is str: + logger.debug('Argument "dictionary" is a string.' + + ' Assuming it is intended as a file name.') + self.read_in_file(dictionary) + elif type(filename) is str: self.read_in_file(filename) def write_to_file(self, outdir, label):