You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
In a folder with the bbob-noisy data sets BFGS and DASA from 2009, I get the following when running the cocopp.bestalg.custom_generate function:
In [1]: import cocopp
In [2]: cocopp.bestalg.custom_generate(["BFGS", "DASA"])
Data consistent according to consistency_check() in pproc.DataSet
using: BFGS
Data consistent according to consistency_check() in pproc.DataSet
using: DASA
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-2-89fcb24091c7> in <module>
----> 1 cocopp.bestalg.custom_generate(["BFGS", "DASA"])
~\anaconda3\lib\site-packages\cocopp-2.6.3.81-py3.9.egg\cocopp\bestalg.py in custom_generate(args, algId, suite)
535 print('Folder %s was created.' % output_dir)
536
--> 537 result = generate(dictAlg, algId)
538
539 create_data_files(output_dir, result, suite)
~\anaconda3\lib\site-packages\cocopp-2.6.3.81-py3.9.egg\cocopp\bestalg.py in generate(dict_alg, algId)
463 for f, i in pproc.dictAlgByFun(dict_alg).items():
464 for d, j in pproc.dictAlgByDim(i).items():
--> 465 tmp = BestAlgSet(j, algId)
466 res[(d, f)] = tmp
467 return res
~\anaconda3\lib\site-packages\cocopp-2.6.3.81-py3.9.egg\cocopp\bestalg.py in __init__(self, dict_alg, algId)
150
151 # Align ERT
--> 152 erts = list(np.transpose(np.vstack([dict_alg[i].target, dict_alg[i].ert]))
153 for i in sortedAlgs)
154 res = readalign.alignArrayData(readalign.HArrayMultiReader(erts))
~\anaconda3\lib\site-packages\cocopp-2.6.3.81-py3.9.egg\cocopp\bestalg.py in <genexpr>(.0)
150
151 # Align ERT
--> 152 erts = list(np.transpose(np.vstack([dict_alg[i].target, dict_alg[i].ert]))
153 for i in sortedAlgs)
154 res = readalign.alignArrayData(readalign.HArrayMultiReader(erts))
~\anaconda3\lib\site-packages\numpy\core\shape_base.py in vstack(tup, dtype, casting)
287 if not isinstance(arrs, list):
288 arrs = [arrs]
--> 289 return _nx.concatenate(arrs, 0, dtype=dtype, casting=casting)
290
291
ValueError: all the input array dimensions except for the concatenation axis must match exactly, but along dimension 1, the array at index 0 has size 11 and the array at index 1 has size 48
Together with @olafmersmann and @nikohansen, we checked last week that the input in line 152 of bestalg looks correct (i.e. both .target and .ert lists have the same length and that only inside the vstack, the lists are altered:
Describe the bug
In a folder with the
bbob-noisy
data setsBFGS
andDASA
from 2009, I get the following when running thecocopp.bestalg.custom_generate
function:Together with @olafmersmann and @nikohansen, we checked last week that the input in line 152 of bestalg looks correct (i.e. both
.target
and.ert
lists have the same length and that only inside the vstack, the lists are altered:Even weirder is the behaviour if I simply print the two lists before calling the vstack:
In this case, everything goes through without error!
Your System (please complete the following information when it seems relevant):
cocopp.__version__
is'2.6.3.81'
(currentdevelopment
branch)The text was updated successfully, but these errors were encountered: