Skip to content

Error on using info command of MontePython to analyse chains #156

@nouicer

Description

@nouicer

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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions