Skip to content
Snippets Groups Projects
Commit fc2f1959 authored by Colm Talbot's avatar Colm Talbot
Browse files

fix logic on creating prior set

parent 0ceb6454
No related branches found
No related tags found
1 merge request!113Add calibration
Pipeline #26761 passed
......@@ -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):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment