Skip to content

Conversation

@iprasannamb
Copy link

@iprasannamb iprasannamb commented Feb 1, 2026

Summary

This PR resolves a runtime crash caused by a missing NumPy import in concore.py when convert_numpy_to_python() is called.


Details

  • File: concore.py (Lines 114–124)

The function referenced np.generic without importing NumPy, resulting in a NameError at runtime.


Related Issues

closes #187


Fix

Added the missing import at the top of the file:

import numpy as np

Signed-off-by: Prasanna <iprasannamb@gmail.com>
Signed-off-by: Prasanna <iprasannamb@gmail.com>
@iprasannamb
Copy link
Author

@pradeeban , Also

The tests were failing in GitHub Actions with ModuleNotFoundError: No module named 'numpy' because the workflow wasn't installing the main project dependencies.

I've updated .github/workflows/tests.yml to install both: requirements.txt , requirements-dev.txt

@pradeeban pradeeban merged commit f21bb89 into ControlCore-Project:dev Feb 1, 2026
4 checks passed
@pradeeban
Copy link
Member

Thanks for the catch and the fix!

@iprasannamb iprasannamb deleted the fix/test branch February 1, 2026 18:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants