You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have been using bagpipes with an old version of numpy but after updating the version of numpy, bagpipes fitting breaks. I tested it out with the sample scripts and also with my own datasets and none of them work anymore.
Bagpipes: fitting object 17433
MultiNest Warning: no resume file found, starting from scratch
*****************************************************
MultiNest v3.10
Copyright Farhan Feroz & Mike Hobson
Release Jul 2015
no. of live points = 400
dimensionality = 6
*****************************************************
MultiNest Warning!
Parameter 5 of mode 1 is converging towards the edge of the prior.
MultiNest Warning!
Parameter 5 of mode 1 is converging towards the edge of the prior.
MultiNest Warning!
Parameter 5 of mode 1 is converging towards the edge of the prior.
MultiNest Warning!
Parameter 5 of mode 1 is converging towards the edge of the prior.
MultiNest Warning!
Parameter 5 of mode 1 is converging towards the edge of the prior.
MultiNest Warning!
Parameter 5 of mode 1 is converging towards the edge of the prior.
MultiNest Warning!
Parameter 5 of mode 1 is converging towards the edge of the prior.
MultiNest Warning!
Parameter 5 of mode 1 is converging towards the edge of the prior.
MultiNest Warning!
Parameter 5 of mode 1 is converging towards the edge of the prior.
MultiNest Warning!
Parameter 5 of mode 1 is converging towards the edge of the prior.
MultiNest Warning!
Parameter 5 of mode 1 is converging towards the edge of the prior.
MultiNest Warning!
Parameter 5 of mode 1 is converging towards the edge of the prior.
MultiNest Warning!
Parameter 5 of mode 1 is converging towards the edge of the prior.
MultiNest Warning!
Parameter 5 of mode 1 is converging towards the edge of the prior.
MultiNest Warning!
Parameter 5 of mode 1 is converging towards the edge of the prior.
MultiNest Warning!
Parameter 5 of mode 1 is converging towards the edge of the prior.
MultiNest Warning!
Parameter 5 of mode 1 is converging towards the edge of the prior.
MultiNest Warning!
Parameter 5 of mode 1 is converging towards the edge of the prior.
MultiNest Warning!
Parameter 5 of mode 1 is converging towards the edge of the prior.
MultiNest Warning!
Parameter 5 of mode 1 is converging towards the edge of the prior.
MultiNest Warning!
Parameter 5 of mode 1 is converging towards the edge of the prior.
MultiNest Warning!
Parameter 5 of mode 1 is converging towards the edge of the prior.
MultiNest Warning!
Parameter 5 of mode 1 is converging towards the edge of the prior.
MultiNest Warning!
Parameter 5 of mode 1 is converging towards the edge of the prior.
MultiNest Warning!
Parameter 5 of mode 1 is converging towards the edge of the prior.
MultiNest Warning!
Parameter 5 of mode 1 is converging towards the edge of the prior.
MultiNest Warning!
Parameter 5 of mode 1 is converging towards the edge of the prior.
MultiNest Warning!
Parameter 5 of mode 1 is converging towards the edge of the prior.
MultiNest Warning!
Parameter 5 of mode 1 is converging towards the edge of the prior.
MultiNest Warning!
Parameter 5 of mode 1 is converging towards the edge of the prior.
MultiNest Warning!
Parameter 5 of mode 1 is converging towards the edge of the prior.
MultiNest Warning!
Parameter 5 of mode 1 is converging towards the edge of the prior.
MultiNest Warning!
Parameter 5 of mode 1 is converging towards the edge of the prior.
MultiNest Warning!
Parameter 5 of mode 1 is converging towards the edge of the prior.
MultiNest Warning!
Parameter 5 of mode 1 is converging towards the edge of the prior.
MultiNest Warning!
Parameter 5 of mode 1 is converging towards the edge of the prior.
MultiNest Warning!
Parameter 5 of mode 1 is converging towards the edge of the prior.
MultiNest Warning!
Parameter 5 of mode 1 is converging towards the edge of the prior.
MultiNest Warning!
Parameter 5 of mode 1 is converging towards the edge of the prior.
MultiNest Warning!
Parameter 5 of mode 1 is converging towards the edge of the prior.
MultiNest Warning!
Parameter 5 of mode 1 is converging towards the edge of the prior.
MultiNest Warning!
Parameter 5 of mode 1 is converging towards the edge of the prior.
MultiNest Warning!
Parameter 5 of mode 1 is converging towards the edge of the prior.
MultiNest Warning!
Parameter 5 of mode 1 is converging towards the edge of the prior.
MultiNest Warning!
Parameter 5 of mode 1 is converging towards the edge of the prior.
MultiNest Warning!
Parameter 5 of mode 1 is converging towards the edge of the prior.
MultiNest Warning!
Parameter 5 of mode 1 is converging towards the edge of the prior.
MultiNest Warning!
Parameter 5 of mode 1 is converging towards the edge of the prior.
MultiNest Warning!
Parameter 5 of mode 1 is converging towards the edge of the prior.
MultiNest Warning!
Parameter 5 of mode 1 is converging towards the edge of the prior.
MultiNest Warning!
Parameter 5 of mode 1 is converging towards the edge of the prior.
MultiNest Warning!
Parameter 5 of mode 1 is converging towards the edge of the prior.
MultiNest Warning!
Parameter 5 of mode 1 is converging towards the edge of the prior.
MultiNest Warning!
Parameter 5 of mode 1 is converging towards the edge of the prior.
MultiNest Warning!
Parameter 5 of mode 1 is converging towards the edge of the prior.
MultiNest Warning!
Parameter 5 of mode 1 is converging towards the edge of the prior.
MultiNest Warning!
Parameter 5 of mode 1 is converging towards the edge of the prior.
MultiNest Warning!
Parameter 5 of mode 1 is converging towards the edge of the prior.
MultiNest Warning!
Parameter 5 of mode 1 is converging towards the edge of the prior.
MultiNest Warning!
Parameter 5 of mode 1 is converging towards the edge of the prior.
MultiNest Warning!
Parameter 5 of mode 1 is converging towards the edge of the prior.
MultiNest Warning!
Parameter 5 of mode 1 is converging towards the edge of the prior.
MultiNest Warning!
Parameter 5 of mode 1 is converging towards the edge of the prior.
MultiNest Warning!
Parameter 5 of mode 1 is converging towards the edge of the prior.
MultiNest Warning!
Parameter 5 of mode 1 is converging towards the edge of the prior.
MultiNest Warning!
Parameter 5 of mode 1 is converging towards the edge of the prior.
MultiNest Warning!
Parameter 5 of mode 1 is converging towards the edge of the prior.
MultiNest Warning!
Parameter 5 of mode 1 is converging towards the edge of the prior.
MultiNest Warning!
Parameter 5 of mode 1 is converging towards the edge of the prior.
MultiNest Warning!
Parameter 5 of mode 1 is converging towards the edge of the prior.
MultiNest Warning!
Parameter 5 of mode 1 is converging towards the edge of the prior.
MultiNest Warning!
Parameter 5 of mode 1 is converging towards the edge of the prior.
MultiNest Warning!
Parameter 5 of mode 1 is converging towards the edge of the prior.
MultiNest Warning!
Parameter 5 of mode 1 is converging towards the edge of the prior.
MultiNest Warning!
Parameter 5 of mode 1 is converging towards the edge of the prior.
MultiNest Warning!
Parameter 5 of mode 1 is converging towards the edge of the prior.
MultiNest Warning!
Parameter 5 of mode 1 is converging towards the edge of the prior.
MultiNest Warning!
Parameter 5 of mode 1 is converging towards the edge of the prior.
MultiNest Warning!
Parameter 5 of mode 1 is converging towards the edge of the prior.
MultiNest Warning!
Parameter 5 of mode 1 is converging towards the edge of the prior.
MultiNest Warning!
Parameter 5 of mode 1 is converging towards the edge of the prior.
MultiNest Warning!
Parameter 5 of mode 1 is converging towards the edge of the prior.
MultiNest Warning!
Parameter 5 of mode 1 is converging towards the edge of the prior.
MultiNest Warning!
Parameter 5 of mode 1 is converging towards the edge of the prior.
MultiNest Warning!
Parameter 5 of mode 1 is converging towards the edge of the prior.
MultiNest Warning!
Parameter 5 of mode 1 is converging towards the edge of the prior.
MultiNest Warning!
Parameter 5 of mode 1 is converging towards the edge of the prior.
MultiNest Warning!
Parameter 5 of mode 1 is converging towards the edge of the prior.
MultiNest Warning!
Parameter 5 of mode 1 is converging towards the edge of the prior.
MultiNest Warning!
Parameter 5 of mode 1 is converging towards the edge of the prior.
MultiNest Warning!
Parameter 5 of mode 1 is converging towards the edge of the prior.
MultiNest Warning!
Parameter 5 of mode 1 is converging towards the edge of the prior.
Completed in 536.0 seconds.
ln(ev)= -48.958506784983591 +/- 0.30330781080861774
Total Likelihood Evaluations: 234416
Sampling finished. Exiting MultiNest
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
Cell In[6], line 3
1 fit = pipes.fit(galaxy, fit_instructions)
----> 3 fit.fit(verbose=False, use_MPI=True)
File [/opt/homebrew/Caskroom/miniforge/base/envs/astroJWST/lib/python3.10/site-packages/bagpipes/fitting/fit.py:150](https://file+.vscode-resource.vscode-cdn.net/opt/homebrew/Caskroom/miniforge/base/envs/astroJWST/lib/python3.10/site-packages/bagpipes/fitting/fit.py:150), in fit.fit(self, verbose, n_live, use_MPI)
148 with warnings.catch_warnings():
149 warnings.simplefilter("ignore")
--> 150 dd.io.save(self.fname[:-1] + ".h5", self.results)
152 os.system("rm " + self.fname + "*")
154 self._print_results()
File [/opt/homebrew/Caskroom/miniforge/base/envs/astroJWST/lib/python3.10/site-packages/deepdish/io/hdf5io.py:584](https://file+.vscode-resource.vscode-cdn.net/opt/homebrew/Caskroom/miniforge/base/envs/astroJWST/lib/python3.10/site-packages/deepdish/io/hdf5io.py:584), in save(path, data, compression)
582 idtable[id(data)] = '[/](https://file+.vscode-resource.vscode-cdn.net/)'
583 forkey, valueindata.items():
--> 584 _save_level(h5file, group, value, name=key,
585 filters=filters, idtable=idtable)
587 elif (_sns and isinstance(data, SimpleNamespace) and
588 _dict_native_ok(data.__dict__)):
589 idtable[id(data)] = '[/](https://file+.vscode-resource.vscode-cdn.net/)'
File [/opt/homebrew/Caskroom/miniforge/base/envs/astroJWST/lib/python3.10/site-packages/deepdish/io/hdf5io.py:250](https://file+.vscode-resource.vscode-cdn.net/opt/homebrew/Caskroom/miniforge/base/envs/astroJWST/lib/python3.10/site-packages/deepdish/io/hdf5io.py:250), in _save_level(handler, group, level, name, filters, idtable)
246 _save_level(handler, new_group, entry, name=level_name,
247 filters=filters, idtable=idtable)
...
AttributeError: module 'numpy' has no attribute 'object'.
`np.object` was a deprecated aliasforthe builtin `object`. To avoid this errorin existing code, use `object` by itself. Doing this will not modify any behavior and is safe.
The aliases was originally deprecated in NumPy 1.20;for more details and guidance see the original release note at:
https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
The text was updated successfully, but these errors were encountered:
Just to note that I've now replaced deepdish with h5py from bagpipes v1.0.2, so hopefully the code should now again be compatible with the most recent versions of numpy.
I have been using bagpipes with an old version of numpy but after updating the version of numpy, bagpipes fitting breaks. I tested it out with the sample scripts and also with my own datasets and none of them work anymore.
Here is my conda environment version dump
I am attaching the output that came out while running the example 3 notebook.
OUTPUT:
The text was updated successfully, but these errors were encountered: