2024 Fixes

1) The CubeCobra CSV headers have changed slightly, capitalizing some words.
2) Cards in the maybeboard should not be included in the averages, so this filters them out.
3) Minor simplifications made to the keyword and word count analysis files to make it a bit easier for amateurs like me to figure out how to run these scripts.
This commit is contained in:
Dan Niemitalo 2024-06-09 10:18:30 -05:00
parent 4cd41ff129
commit e17e9a349c
3 changed files with 23 additions and 13 deletions

View file

@ -6,8 +6,10 @@ import cubecobra_csv
import keyword_stats
if __name__ == '__main__':
cube_list = cubecobra_csv.load_cube_names('cube_csvs/TheElegantCube_2020-11-17_5.0.4.csv', {'core'})
cube_json_filename = cube_json.create_cube_json(cube_list, 'cubes/TheElegantCube_2020-11-17_5.0.4.json')
cube_id = 'jeskaicube'
csv_path = cubecobra_csv.request_cube_csv(cube_id, cube_id)
cube_list = cubecobra_csv.load_cube_names(f'cube_csvs/{cube_id}.csv')
cube_json_filename = cube_json.create_cube_json(cube_list, f'cubes/{cube_id}.json')
keyword_dict = keyword_stats.keyword_count(cube_json_filename)
# keyword_stats.keyword_report(keyword_dict)