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 am facing an strange issue while using info to produce analyzes and plots of my txt outputs.
I suspected that it was the version of numpy that was not the right one (because of "normed" and "density" for the histograms). But I couldn't find a solution. Here is my error message and hope someone can help me.
Thank you so much
-> Computing histograms for Omega_m
Traceback (most recent call last):
File "/home/nouicer/montepython-3.6/montepython/MontePython.py", line 40, in
sys.exit(run())
^^^^^
File "/home/nouicer/montepython-3.6/montepython/run.py", line 31, in run
cosmo, data, command_line, success = safe_initialisation(
^^^^^^^^^^^^^^^^^^^^
File "/home/nouicer/montepython-3.6/montepython/run.py", line 191, in safe_initialisation
cosmo, data, command_line, success = initialise(custom_command)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/nouicer/montepython-3.6/montepython/initialise.py", line 59, in initialise
analyze(command_line)
File "/home/nouicer/montepython-3.6/montepython/analyze.py", line 167, in analyze
compute_posterior(information_instances)
File "/home/nouicer/montepython-3.6/montepython/analyze.py", line 569, in compute_posterior
info.hist, info.bin_edges = np.histogram(
^^^^^^^^^^^^^
File "<array_function internals>", line 198, in histogram
TypeError: histogram() got an unexpected keyword argument 'normed'
The text was updated successfully, but these errors were encountered:
Dear user,
Your are raising issues on the old MontePython v1 and v2 repository (active in 2013-2018).
As clearly stated on this wiki, issue #55: since April 2018 and v3, the MontePython repository has moved to https://github.com/brinckmann/montepython_public
Please go there to clone a recent, working and maintained version of the code. Then, if necessary, please raise your issues in that repository.
(In this particular case, you are re-raising issue brinckmann#318 . This has been fixed on the devel branch and will be pushed public in the next version, in the meantime the issue provides the solution: anywhere in analyze.py where 'normed' is used for histogram or histogram2d it should use 'density' instead)
Best,
Thejs
I am facing an strange issue while using info to produce analyzes and plots of my txt outputs.
I suspected that it was the version of numpy that was not the right one (because of "normed" and "density" for the histograms). But I couldn't find a solution. Here is my error message and hope someone can help me.
Thank you so much
-> Computing histograms for Omega_m
Traceback (most recent call last):
File "/home/nouicer/montepython-3.6/montepython/MontePython.py", line 40, in
sys.exit(run())
^^^^^
File "/home/nouicer/montepython-3.6/montepython/run.py", line 31, in run
cosmo, data, command_line, success = safe_initialisation(
^^^^^^^^^^^^^^^^^^^^
File "/home/nouicer/montepython-3.6/montepython/run.py", line 191, in safe_initialisation
cosmo, data, command_line, success = initialise(custom_command)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/nouicer/montepython-3.6/montepython/initialise.py", line 59, in initialise
analyze(command_line)
File "/home/nouicer/montepython-3.6/montepython/analyze.py", line 167, in analyze
compute_posterior(information_instances)
File "/home/nouicer/montepython-3.6/montepython/analyze.py", line 569, in compute_posterior
info.hist, info.bin_edges = np.histogram(
^^^^^^^^^^^^^
File "<array_function internals>", line 198, in histogram
TypeError: histogram() got an unexpected keyword argument 'normed'
The text was updated successfully, but these errors were encountered: