---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-56-8bbf3c69be9d> in <module>()
----> 1 tmp_par = pypeitpar.PypeItPar.from_dict(cfg)
~/local/Python/PypeIt/pypeit/par/pypeitpar.py in from_dict(cls, cfg)
2338
2339 pk = 'rdx'
-> 2340 kwargs[pk] = ReducePar.from_dict(cfg[pk]) if pk in k else None
2341
2342 pk = 'calibrations'
~/local/Python/PypeIt/pypeit/par/pypeitpar.py in from_dict(cls, cfg)
926 for pk in parkeys:
927 kwargs[pk] = cfg[pk] if pk in k else None
--> 928 return cls(**kwargs)
929
930 @staticmethod
~/local/Python/PypeIt/pypeit/par/pypeitpar.py in __init__(self, spectrograph, detnum, sortroot, calwin, scidir, qadir, redux_path, ignore_bad_headers)
913 options=list(options.values()),
914 dtypes=list(dtypes.values()),
--> 915 descr=list(descr.values()))
916 self.validate()
917
~/local/Python/PypeIt/pypeit/par/parset.py in __init__(self, pars, values, defaults, options, dtypes, can_call, descr, cfg_section, cfg_comment)
193 self.__setitem__(p, d)
194 continue
--> 195 self.__setitem__(p, v)
196
197 # Save the configuration file section details
~/local/Python/PypeIt/pypeit/par/parset.py in __setitem__(self, key, value)
245 and not any([ isinstance(value, d) for d in self.dtype[key]]):
246 raise TypeError('Input value for {0} has incorrect type: {1}.'.format(key, value) +
--> 247 '\nValid types are: {0}'.format(self.dtype[key]))
248
249 if self.can_call[key] and not callable(value):
TypeError: Input value for detnum has incorrect type: None.
Valid types are: [<class 'int'>, <class 'list'>]