| 12345678910111213141516171819202122232425262728293031 |
- # debug_test.py
- import sys
- sys.path.append('.')
- def debug_test():
- """调试测试"""
- print("🔍 调试测试 - 检查远程目录结构")
-
- try:
- from database import DataFetcher
-
- fetcher = DataFetcher()
-
- # 测试目录结构
- print("1. 检查远程目录结构...")
- fetcher._debug_remote_structure()
-
- # 测试具体风场
- print("\n2. 测试7V2xSuma风场...")
- columns = fetcher.get_turbine_columns("7V2xSuma")
- print(f"列数: {len(columns)}")
-
- fetcher.close_connection()
-
- except Exception as e:
- print(f"调试失败: {str(e)}")
- import traceback
- traceback.print_exc()
- if __name__ == "__main__":
- debug_test()
|