Commit 95c91527 authored by Médéric Boquien's avatar Médéric Boquien

Use == and not "is" for checking if a string is empty.

parent 03e2359b
......@@ -45,7 +45,7 @@ class ModelsManager(object):
bandnames = obs.bands
size = len(params.blocks[iblock])
if conf['parameters_file'] is "":
if conf['parameters_file'] == "":
self.nz = len(conf['sed_modules_params']['redshifting']['redshift'])
self.nm = size // self.nz
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment