From daefcad215e9edcf5927788cf2860903eb0e1c1b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20Ke=C3=9Fler?= Date: Sun, 14 May 2023 19:11:10 +0200 Subject: [PATCH] adjust instance finder to refactors --- instance_finder.py | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/instance_finder.py b/instance_finder.py index 3c13bc6..d9d9c02 100644 --- a/instance_finder.py +++ b/instance_finder.py @@ -1,18 +1,15 @@ -import json -from site_api import get, api, replay from sat import solve_sat -from database import Game, store, load, commit, conn +from database import conn from download_data import export_game -from variants import num_suits, VARIANTS, variant_name +from variants import VARIANTS, variant_name from alive_progress import alive_bar from compress import decompress_deck, link import concurrent.futures from threading import Lock -from time import sleep, perf_counter +from time import perf_counter from greedy_solver import GameState, GreedyStrategy -from logger_setup import logger -from deck_analyzer import analyze, InfeasibilityReason, InfeasibilityType - +from log_setup.logger_setup import logger +from deck_analyzer import analyze, InfeasibilityReason MAX_PROCESSES=4