Skip to content

cocopp.load2 fails with constrained data #69

@nikohansen

Description

@nikohansen
dsl = cocopp.load2('2022/epsMAg_Hellwig.tgz')
downloading https://numbbo.github.io/data-archive/data-archive/bbob-constrained/2022/epsMAg_Hellwig.tgz to [/Users/hansen/Library/Caches/cocopp/das/da/bbob-constrained/2022/epsMAg_Hellwig.tgz](https://file+.vscode-resource.vscode-cdn.net/Users/hansen/Library/Caches/cocopp/das/da/bbob-constrained/2022/epsMAg_Hellwig.tgz)
    archive extracted to folder [/Users/hansen/Library/Caches/cocopp/das/da/bbob-constrained/2022/.extracted_epsMAg_Hellwig](https://file+.vscode-resource.vscode-cdn.net/Users/hansen/Library/Caches/cocopp/das/da/bbob-constrained/2022/.extracted_epsMAg_Hellwig) ...
  Data consistent according to consistency_check() in pproc.DataSet
---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
Cell In[6], [line 2](vscode-notebook-cell:?execution_count=6&line=2)
      1 cocopp.archives.bbob_constrained
----> [2](vscode-notebook-cell:?execution_count=6&line=2) dsl = cocopp.load2('2022/epsMAg_Hellwig.tgz')

File ~/opt/anaconda3/envs/py314/lib/python3.14/site-packages/cocopp/cococommands.py:284, in load2(args, keep, remove, flat_list)
    282 args2 = official_archives.all.get_extended(args)
    283 dsList, _sortedAlgs, dictAlg = _pproc.processInputArgs(args2, True)  # takes ~1 minutes per 10 data sets
--> [284](https://file+.vscode-resource.vscode-cdn.net/Users/hansen/git/numbbo/coco-postprocess/~/opt/anaconda3/envs/py314/lib/python3.14/site-packages/cocopp/cococommands.py:284) dsList2 = _pproc.DataSetList(_testbedsettings.current_testbed.filter(dsList))
    285 if keep:
    286     dsList2.filter(keep)

File ~/opt/anaconda3/envs/py314/lib/python3.14/site-packages/cocopp/testbedsettings.py:394, in GECCOBBOBTestbed.filter(self, dsl)
    392         bbob_detected = True
    393     else:
--> [394](https://file+.vscode-resource.vscode-cdn.net/Users/hansen/git/numbbo/coco-postprocess/~/opt/anaconda3/envs/py314/lib/python3.14/site-packages/cocopp/testbedsettings.py:394)         raise ValueError(
    395             "Data from %s suite is not "
    396             "compatible with other data from "
    397             "the bbob and/or bbob-largescale "
    398             "and/or bbob-boxed "
    399             "suites" % str(ds.suite_name)
    400         )
    402 # now update all elements in flattened list if needed:
    403 if bbob_detected and bbob_largescale_detected and not bbob_boxed_detected:

ValueError: Data from bbob-constrained suite is not compatible with other data from the bbob and/or bbob-largescale and/or bbob-boxed suites

cocopp.load seems to work fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions