word_count.py fetches from CubeCobra
This commit is contained in:
parent
356d0d0603
commit
723fb00b3a
1 changed files with 10 additions and 8 deletions
|
|
@ -165,17 +165,19 @@ if __name__ == '__main__':
|
||||||
full_oracle = False
|
full_oracle = False
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
# Use either line:
|
# Use either option:
|
||||||
|
|
||||||
# 1. If you have a .txt of your cube
|
# 1. If you have your cube in Cube Cobra and want to filter per tag
|
||||||
|
# csv_path = cube_json.request_cube_csv('TheElegantCube_fetched', 'elegant')
|
||||||
|
# cube_list = cube_json.load_cube_from_csv(csv_path)
|
||||||
|
|
||||||
|
# 2. If you have your cube in Cube Cobra and want to consider only cards with a certain tag
|
||||||
|
csv_path = cube_json.request_cube_csv('TheElegantCube_fetched', 'elegant')
|
||||||
|
cube_list = cube_json.load_cube_from_csv(csv_path, tag_filter={'core'})
|
||||||
|
|
||||||
|
# 3. If you have a .txt of your cube
|
||||||
# cube_list = cube_json.load_cube_from_txt('YourCubeHere.txt')
|
# cube_list = cube_json.load_cube_from_txt('YourCubeHere.txt')
|
||||||
|
|
||||||
# 2. If you have a .csv of your cube
|
|
||||||
# cube_list = cube_json.load_cube_from_csv('YourCubeHere.csv')
|
|
||||||
|
|
||||||
# 3. If you have a .csv of your cube and want to consider only cards with a certain tag
|
|
||||||
cube_list = cube_json.load_cube_from_csv('cube_csvs/TheElegantCube_2020-11-17_5.0.4.csv', {'core'})
|
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
# Calculate average of a cube
|
# Calculate average of a cube
|
||||||
cube_json_handle = cube_json.create_cube_json(cube_list)
|
cube_json_handle = cube_json.create_cube_json(cube_list)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue