Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting error in pprldmany.py when running experiments with 2 functions in a custom suite #2267

Open
Yash-Pisat opened this issue Feb 28, 2024 · 1 comment

Comments

@Yash-Pisat
Copy link

I created a custom suite with one function in it and ran the experiment it worked perfectly after integrating it with the coco framework. Now I added one more function to the same suite and made the necessary changes but I am getting this error which I am not able to debug.
Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in _run_code
File "/Users/yash.pisat/Desktop/Thesis/coco/venv/lib/python3.11/site-packages/cocopp/main.py", line 30, in
res = rungeneric.main(args)
^^^^^^^^^^^^^^^^^^^^^
File "/Users/yash.pisat/Desktop/Thesis/coco/venv/lib/python3.11/site-packages/cocopp/rungeneric.py", line 408, in main
dsld = rungeneric1.main(alg, outputdir, genopts + ["-o", outputdir, alg])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/yash.pisat/Desktop/Thesis/coco/venv/lib/python3.11/site-packages/cocopp/rungeneric1.py", line 222, in main
pprldmany.all_single_functions(dictAlg,
File "/Users/yash.pisat/Desktop/Thesis/coco/venv/lib/python3.11/site-packages/cocopp/compall/pprldmany.py", line 524, in all_single_functions
main(tempDictAlg,
File "/Users/yash.pisat/Desktop/Thesis/coco/venv/lib/python3.11/site-packages/cocopp/compall/pprldmany.py", line 950, in main
testbedsettings.current_testbed.short_names[list(dictFunc.keys())[0]])),
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^
KeyError: 2

@nikohansen
Copy link
Contributor

Are you sure you updated the information for the testbed according to the changes? It seems like the shortinfo_filename in testbed class which is defined in cocopp.testbedsettings (and is by default 'bbob-benchmarkshortinfos.txt') does not have enough entries.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants