cluster4npu/tests/simple_test.py
HuangMason320 ccd7cdd6b9 feat: Reorganize test scripts and improve YOLOv5 postprocessing
- Move test scripts to tests/ directory for better organization
- Add improved YOLOv5 postprocessing with reference implementation
- Update gitignore to exclude *.mflow files and include main.spec
- Add debug capabilities and coordinate scaling improvements
- Enhance multi-series support with proper validation
- Add AGENTS.md documentation and example utilities

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-11 19:23:59 +08:00

40 lines
1.1 KiB
Python

#!/usr/bin/env python3
"""
Simple test for port ID configuration
"""
import sys
import os
current_dir = os.path.dirname(os.path.abspath(__file__))
parent_dir = os.path.dirname(current_dir)
sys.path.insert(0, parent_dir)
from core.nodes.exact_nodes import ExactModelNode
def main():
print("Creating ExactModelNode...")
node = ExactModelNode()
print("Testing property options...")
if hasattr(node, '_property_options'):
port_props = [k for k in node._property_options.keys() if 'port_ids' in k]
print(f"Found port ID properties: {port_props}")
else:
print("No _property_options found")
print("Testing _build_multi_series_config method...")
if hasattr(node, '_build_multi_series_config'):
print("Method exists")
try:
config = node._build_multi_series_config()
print(f"Config result: {config}")
except Exception as e:
print(f"Error calling method: {e}")
else:
print("Method does not exist")
print("Test completed!")
if __name__ == "__main__":
main()