Commit 380b7c96 authored by Médéric Boquien's avatar Médéric Boquien
Browse files

There is no need to build a list of keys to check whether a variable is among...

There is no need to build a list of keys to check whether a variable is among the keys of a dictionary.
parent f63f5395
......@@ -285,7 +285,7 @@ class SED(object):
key = (wavelength.size, filter_name, self.info['redshift'])
else:
key = (wavelength.size, filter_name, 0.)
if key in list(self.cache_filters.keys()):
if key in self.cache_filters:
wavelength_r, transmission_r, lambda_eff = self.cache_filters[key]
else:
with Database() as db:
......
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