You've already forked etude_lego_jurassic_world
Exclure les pièces de minifigs et intégrer les visuels de rareté
This commit is contained in:
19
scripts/plot_part_rarity.py
Normal file
19
scripts/plot_part_rarity.py
Normal file
@@ -0,0 +1,19 @@
|
||||
"""Trace le diagramme des pièces rares pour l'étape 34."""
|
||||
|
||||
from pathlib import Path
|
||||
|
||||
from lib.plots.part_rarity import plot_part_rarity
|
||||
|
||||
|
||||
PART_RARITY_TOP_PATH = Path("data/intermediate/part_rarity_exclusive.csv")
|
||||
DESTINATION_PATH = Path("figures/step34/part_rarity.png")
|
||||
RESOURCES_DIR = Path("figures/rebrickable")
|
||||
|
||||
|
||||
def main() -> None:
|
||||
"""Charge le top des pièces rares et produit le graphique illustré."""
|
||||
plot_part_rarity(PART_RARITY_TOP_PATH, DESTINATION_PATH, resources_dir=RESOURCES_DIR)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
Reference in New Issue
Block a user