Closed mdtrooper closed 1 year ago
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. Please do not bump or comment on this issue unless you are actively working on it. Stale issues, and stale issues that are closed are still considered.
Describe the bug
I followed the example (it was wrote at the head into the file tileset_coverage.py) to get the tileset coverage.
And it is fails.
$ python3 tools/gfx_tools/tileset_coverage.py \ all_game_ids.csv all_overlay_ids.csv tileset_ids.csv \ tileset_coverage_output.csv /tmp/Cataclysm-DDA/tools/gfx_tools/tileset_coverage.py:94: FutureWarning: The warn_bad_lines argument has been deprecated and will be removed in a future version. Use on_bad_lines in the future.
all_game_ids = pandas.read_csv( /tmp/Cataclysm-DDA/tools/gfx_tools/tileset_coverage.py:98: FutureWarning: The warn_bad_lines argument has been deprecated and will be removed in a future version. Use on_bad_lines in the future.
overlay_ids = pandas.read_csv( /tmp/Cataclysm-DDA/tools/gfx_tools/tileset_coverage.py:104: FutureWarning: The warn_bad_lines argument has been deprecated and will be removed in a future version. Use on_bad_lines in the future.
tileset_ids = pandas.read_csv( Traceback (most recent call last): File "/tmp/Cataclysm-DDA/tools/gfx_tools/tileset_coverage.py", line 216, in
merge_datasets(
File "/tmp/Cataclysm-DDA/tools/gfx_tools/tileset_coverage.py", line 168, in merge_datasets
result = all_game_ids.merge(
File "/home/panacea/.local/lib/python3.10/site-packages/pandas/core/frame.py", line 10090, in merge
return merge(
File "/home/panacea/.local/lib/python3.10/site-packages/pandas/core/reshape/merge.py", line 110, in merge
op = _MergeOperation(
File "/home/panacea/.local/lib/python3.10/site-packages/pandas/core/reshape/merge.py", line 703, in init
) = self._get_merge_keys()
File "/home/panacea/.local/lib/python3.10/site-packages/pandas/core/reshape/merge.py", line 1179, in _get_merge_keys
left_keys.append(left._get_label_or_level_values(lk))
File "/home/panacea/.local/lib/python3.10/site-packages/pandas/core/generic.py", line 1850, in _get_label_or_level_values
raise KeyError(key)
KeyError: 'id'
Attach save file
N/A
Steps to reproduce
(Copy & Paste the example in the file tileset_coverage.py)
Expected behavior
Get the coverage of tileset.
Screenshots
No response
Versions and configuration
Python version:
Pip packages (and versions):
Other info:
Additional context
No response