version 2.0.5 pdspy
Error:
Traceback (most recent call last):
File "/home/reynolds/github/pdspy/bin/disk_model_nested.py", line 166, in <module>
sampler = dynesty.NestedSampler(utils.dynesty.lnlike, utils.dynesty.ptform,\
File "/home/reynolds/miniconda3/envs/38pdspy/lib/python3.8/site-packages/dynesty/dynesty.py", line 665, in __new__
live_points = _initialize_live_points(live_points,
File "/home/reynolds/miniconda3/envs/38pdspy/lib/python3.8/site-packages/dynesty/dynamicsampler.py", line 395, in _initialize_live_points
live_v = np.array(list(live_v))
File "/home/reynolds/miniconda3/envs/38pdspy/lib/python3.8/site-packages/dynesty/dynesty.py", line 895, in __call__
return self.func(np.asarray(x).copy(), *self.args, **self.kwargs)
File "/home/reynolds/miniconda3/envs/38pdspy/lib/python3.8/site-packages/pdspy/utils/dynesty.py", line 181, in ptform
if params["logM_env"]["fixed"]:
NameError: name 'params' is not defined
Issue:
In line 181 in the pdspy.utils.dynesty module, the variable params is called but within the ptform function there is no params variable declared. I think parameters was meant instead.
Resolution:
Changing lines 181, 183, 185 in module pdspy.utils.dynesty to read parameters instead of params fixes the issue.
version 2.0.5 pdspy
Error:
Issue:
In line 181 in the
pdspy.utils.dynestymodule, the variableparamsis called but within theptformfunction there is noparamsvariable declared. I thinkparameterswas meant instead.Resolution:
Changing lines 181, 183, 185 in module
pdspy.utils.dynestyto readparametersinstead ofparamsfixes the issue.