I am very new to Montepython and Class and have run into some issues with the installation. I tried to run a test run with:
python montepython/Montepython.py run -p input/jla.param -o jla_test_run -N 100
and got an error that I needed to install Pandas for the matrix manipulation. I did, and now I get this output error:
Running Monte Python v3.3.2
with CLASS v2.9.0
Testing likelihoods for:
->JLA
Traceback (most recent call last):
File "montepython/MontePython.py", line 40, in
sys.exit(run())
File "/home/montepython/montepython/run.py", line 32, in run
custom_command)
File "/home/montepython/montepython/run.py", line 191, in safe_initialisation
cosmo, data, command_line, success = initialise(custom_command)
File "/home/montepython/montepython/initialise.py", line 67, in initialise
data = Data(command_line, path)
File "/home/montepython/montepython/data.py", line 356, in init
self.initialise_likelihoods(self.experiments)
File "/home/montepython/montepython/data.py", line 485, in initialise_likelihoods
elem, elem, folder, elem))
File "", line 1, in
File "/home/montepython/montepython/likelihoods/JLA/init.py", line 64, in init
self.C00 = self.read_matrix(self.mag_covmat_file)
File "/home/montepython/montepython/likelihood_class.py", line 2500, in read_matrix
matrix = read_table(path).as_matrix().reshape((length, length))
File "/home/pav/.local/lib/python3.6/site-packages/pandas/core/generic.py", line 5274, in getattr
return object.getattribute(self, name)
AttributeError: 'DataFrame' object has no attribute 'as_matrix'
I get the exact same message when using the Pantheon likelihood
I downloaded pandas with pip3, pandas version 1.0.1.
Is this a problem with the version I am using? Any help would be greatly appreciated. Thank you in advance!
Hello!
I am very new to Montepython and Class and have run into some issues with the installation. I tried to run a test run with:
python montepython/Montepython.py run -p input/jla.param -o jla_test_run -N 100
and got an error that I needed to install Pandas for the matrix manipulation. I did, and now I get this output error:
Running Monte Python v3.3.2
with CLASS v2.9.0
Testing likelihoods for: ->JLA
Traceback (most recent call last): File "montepython/MontePython.py", line 40, in
sys.exit(run())
File "/home/montepython/montepython/run.py", line 32, in run
custom_command)
File "/home/montepython/montepython/run.py", line 191, in safe_initialisation
cosmo, data, command_line, success = initialise(custom_command)
File "/home/montepython/montepython/initialise.py", line 67, in initialise
data = Data(command_line, path)
File "/home/montepython/montepython/data.py", line 356, in init
self.initialise_likelihoods(self.experiments)
File "/home/montepython/montepython/data.py", line 485, in initialise_likelihoods
elem, elem, folder, elem))
File "", line 1, in
File "/home/montepython/montepython/likelihoods/JLA/init.py", line 64, in init
self.C00 = self.read_matrix(self.mag_covmat_file)
File "/home/montepython/montepython/likelihood_class.py", line 2500, in read_matrix
matrix = read_table(path).as_matrix().reshape((length, length))
File "/home/pav/.local/lib/python3.6/site-packages/pandas/core/generic.py", line 5274, in getattr
return object.getattribute(self, name)
AttributeError: 'DataFrame' object has no attribute 'as_matrix'
I get the exact same message when using the Pantheon likelihood I downloaded pandas with pip3, pandas version 1.0.1. Is this a problem with the version I am using? Any help would be greatly appreciated. Thank you in advance!