Skip to content

IndexError: List index out of range #394

@Amoghsriv

Description

@Amoghsriv

While running the scalar field model on Montepython, I'm getti ng the following error.
with CLASS v3.3.0
/!\ Detecting empty folder, logging the parameter file

Testing likelihoods for:
->flcdm_hz_lkl_new

Traceback (most recent call last):
File "/home/amoghsriv/cosmo/montepython_public/montepython/MontePython.py", line 40, in
sys.exit(run())
File "/home/amoghsriv/cosmo/montepython_public/montepython/run.py", line 31, in run
cosmo, data, command_line, success = safe_initialisation(
File "/home/amoghsriv/cosmo/montepython_public/montepython/run.py", line 191, in safe_initialisation
cosmo, data, command_line, success = initialise(custom_command)
File "/home/amoghsriv/cosmo/montepython_public/montepython/initialise.py", line 67, in initialise
data = Data(command_line, path)
File "/home/amoghsriv/cosmo/montepython_public/montepython/data.py", line 365, in init
self.group_parameters_in_blocks()
File "/home/amoghsriv/cosmo/montepython_public/montepython/data.py", line 670, in group_parameters_in_blocks
self.assign_over_sampling_indices()
File "/home/amoghsriv/cosmo/montepython_public/montepython/data.py", line 682, in assign_over_sampling_indices
[i for i in self.block_parameters if index < i][0])
IndexError: list index out of range

Here is my param file,

Experiment setup
data.experiments = ['fpcdm_hz_lkl_new']

Cosmological parameters
data.parameters['omega_b'] = [0.022, 0, 0.06, 0.001, 1, 'cosmo'] # Baryon density
data.parameters['omega_cdm'] = [0.12, 0, 0.50, 0.001, 1, 'cosmo'] # Cold dark matter density
data.parameters['h'] = [0.70, 0.50, 1.30, 0.005, 1, 'cosmo'] # Hubble parameter
data.parameters['Omega_scf'] = [1.0, None, None, 0.0, 1, 'cosmo']

data.parameters['scf_parameters__1'] = [0.05, 0.0, 1.0, 0.05, 1, 'cosmo']
data.parameters['scf_parameters__2'] = [0.05, 0.1, 2, 1.0, 1, 'cosmo']
data.parameters['scf_parameters__3'] = [0.0, None, None, 0.0, 1, 'cosmo']
data.parameters['scf_parameters__4'] = [0.0, None, None, 0.0, 1, 'cosmo']
data.parameters['scf_parameters__5'] = [1.0, None, None, 0.0, 1, 'cosmo']
data.parameters['scf_parameters__6'] = [0.0, None, None, 0.0, 1, 'cosmo']

data.cosmo_arguments['attractor_ic_scf'] = 'no'
data.cosmo_arguments['scf_tuning_index'] = 1

Derived parameters
data.parameters['omega_m'] = [0.1, 0, 0.6, 0.1, 1, 'derived']

Output folder
data.output = '/home/cosmo/outputfol/fpcdm_out'

Can you help me please debug this error?

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