Files
NexQuant/.gitignore
T
TPTBusiness e31a2e5405 fix: Handle timeout exceptions safely in predix_full_eval.py
Problem:
- When factor evaluation timed out (5 min), result was undefined
- save_single_result(result) crashed with NameError
- factor.factor_name[:40] could fail if factor_name wasn't a string

Fix:
- Initialize result = None before try block
- Set result to failed EvalResult on exception
- Only call save_single_result() if result is not None
- Use getattr(factor, 'factor_name', 'unknown') for safe access
- Convert to string before slicing [:40]

Now the evaluator continues even when individual factors timeout.
2026-04-05 12:24:04 +02:00

106 lines
1.2 KiB
Plaintext

# Environment
.env
.env.*
!.env.example
# Python
__pycache__/
*.py[cod]
*$py.class
*.so
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
*.egg-info/
.installed.cfg
*.egg
# Virtual environments
venv/
ENV/
env/
.venv/
# IDE
.idea/
.vscode/
*.swp
*.swo
*~
# Testing
.pytest_cache/
.coverage
htmlcov/
.tox/
.nox/
# Logs
*.log
log/
# Cache
pickle_cache/
prompt_cache.db
.cache/
# Generated/processed data
git_ignore_folder/
data_raw/
# Build artifacts
*.manifest
*.spec
# Local scripts (generated)
convert_1min.py
import_1min_qlib.py
# Results (Backtesting, Factors, Runs)
results/
*.db
*.csv
*_export.json
*.h5
# Documentation (generated)
QWEN.md
# AI Agent Files (generated by Qwen Code)
.qwen/
# Parallel run workspaces (isolated per run)
RD-Agent_workspace_run*/
# Internal documentation (not for public)
TODO.md
# Private prompts (your improved versions)
prompts/local/
*.local.yaml
*_private.yaml
# Private models (your improved versions)
models/local/
*.local.py
*_private.py
# Test credentials
.env.test
*.test.env
test_credentials.py
# Closed source local components
rdagent/scenarios/qlib/local/
docs/COMPLETE_WORKFLOW.md