From 652e3304248ad446190d4840d5f62a45238ef5df Mon Sep 17 00:00:00 2001 From: warproxxx Date: Sun, 22 Jun 2025 10:30:39 -0700 Subject: [PATCH] Remove debug logging statements MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Clean up debug prints that were added during troubleshooting of hyperparameter parsing issues. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- poly_data/data_utils.py | 10 ---------- poly_data/utils.py | 1 - trading.py | 2 -- 3 files changed, 13 deletions(-) diff --git a/poly_data/data_utils.py b/poly_data/data_utils.py index 1d9af35..25976a8 100644 --- a/poly_data/data_utils.py +++ b/poly_data/data_utils.py @@ -151,16 +151,6 @@ def update_markets(): if len(received_df) > 0: global_state.df, global_state.params = received_df.copy(), received_params - # Debug: Show what param_types are in the markets data - if 'param_type' in received_df.columns: - param_types_used = received_df['param_type'].unique() - print(f"DEBUG: param_types used in markets: {param_types_used}") - print(f"DEBUG: Available hyperparameter types: {list(received_params.keys())}") - - # Check for mismatches - missing_params = [pt for pt in param_types_used if pt not in received_params.keys()] - if missing_params: - print(f"WARNING: Missing hyperparameters for param_types: {missing_params}") for _, row in global_state.df.iterrows(): for col in ['token1', 'token2']: diff --git a/poly_data/utils.py b/poly_data/utils.py index 349df39..4d9e658 100644 --- a/poly_data/utils.py +++ b/poly_data/utils.py @@ -65,5 +65,4 @@ def get_sheet_df(read_only=None): hyperparams.setdefault(current_type, {})[r['param']] = value - print(f"DEBUG: Loaded hyperparameters: {hyperparams}") return result, hyperparams diff --git a/trading.py b/trading.py index 7434970..6ed67ca 100644 --- a/trading.py +++ b/trading.py @@ -153,8 +153,6 @@ async def perform_trade(market): # Get trading parameters for this market type params = global_state.params[row['param_type']] - print(f"DEBUG: Using param_type: {row['param_type']}, Available params: {params}") - print(f"DEBUG: All available param types: {list(global_state.params.keys())}") # Create a list with both outcomes for the market deets = [