1

Exclusion des pièces imprimées dans la recherche de rareté

This commit is contained in:
2025-12-03 17:21:00 +01:00
parent 3f81f0bbde
commit a474e57694
4 changed files with 40 additions and 1 deletions

View File

@@ -8,11 +8,14 @@ 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")
PART_RARITY_NO_PRINT_PATH = Path("data/intermediate/part_rarity_exclusive_no_print.csv")
DESTINATION_NO_PRINT = Path("figures/step34/part_rarity_no_print.png")
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)
plot_part_rarity(PART_RARITY_NO_PRINT_PATH, DESTINATION_NO_PRINT, resources_dir=RESOURCES_DIR)
if __name__ == "__main__":