-
Notifications
You must be signed in to change notification settings - Fork 2
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
Adding and removing instances yields errors #79
Labels
bug
Something isn't working
Comments
|
sparkle installed with: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Steps to reproduce:
sparkle add_instances ../Sparkle/Examples/Resources/Instances/PTN`
mkdir tempexp; cd tempexp'
sparkle initialiseyields
"""
Start adding all instances in directory ../Sparkle/Examples/Resources/Instances/PTN ...
Copying files...
Copying ../Sparkle/Examples/Resources/Instances/PTN/Ptn-7824-b15.cnf to Instances/PTN...
Copying done!
Traceback (most recent call last):
File "/home/rook/.miniforge3/envs/sparkle/lib/python3.10/site-packages/sparkle/CLI/add_instances.py", line 96, in
performance_data.add_instance(str(instance_path))
File "/home/rook/.miniforge3/envs/sparkle/lib/python3.10/site-packages/sparkle/structures/performance_dataframe.py", line 253, in add_instance
emidx = pd.MultiIndex(levels, names=PerformanceDataFrame.multi_dim_names)
File "/home/rook/.miniforge3/envs/sparkle/lib/python3.10/site-packages/pandas/core/indexes/multi.py", line 340, in new
raise TypeError("Must pass both levels and codes")
TypeError: Must pass both levels and codes
"""
sparkle remove instances PTN
yields
"""
Start removing all instances in directory Instances/PTN ...
Traceback (most recent call last):
File "/home/rook/.miniforge3/envs/sparkle/lib/python3.10/site-packages/sparkle/CLI/remove_instances.py", line 53, in
feature_data.remove_instances(str(instance))
File "/home/rook/.miniforge3/envs/sparkle/lib/python3.10/site-packages/sparkle/structures/feature_dataframe.py", line 85, in remove_instances
self.dataframe.drop(instances, axis=1, inplace=True)
File "/home/rook/.miniforge3/envs/sparkle/lib/python3.10/site-packages/pandas/core/frame.py", line 5581, in drop
return super().drop(
File "/home/rook/.miniforge3/envs/sparkle/lib/python3.10/site-packages/pandas/core/generic.py", line 4788, in drop
obj = obj._drop_axis(labels, axis, level=level, errors=errors)
File "/home/rook/.miniforge3/envs/sparkle/lib/python3.10/site-packages/pandas/core/generic.py", line 4830, in _drop_axis
new_axis = axis.drop(labels, errors=errors)
File "/home/rook/.miniforge3/envs/sparkle/lib/python3.10/site-packages/pandas/core/indexes/base.py", line 7070, in drop
raise KeyError(f"{labels[mask].tolist()} not found in axis")
KeyError: "['Instances/PTN/Ptn-7824-b03.cnf'] not found in axis"
"""
The text was updated successfully, but these errors were encountered: