Support sparse array
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 42/100
Research direction
Start by reproducing the reported failure with start_instance(engine="matlab") and m.runpf(), using the matpower-pip example and the MATLAB sparse-array error as the entry point. Compare the MATLAB engine path with the existing Oct2Py behavior and verify that sparse results are returned in a scipy-compatible representation without breaking dense data handling.
Written by the indexing model from the issue text.
Description
Hi, I'm a matpower-pip maintainer. It currently fully support MATPOWER via octave and Oct2Py. I just got access to genuine MATLAB engine and test my package on it. Turns out, you didn't support sparse data.
TypeError: conversion of MATLAB sparse array to Python not supported
I suggest that you use scipy representation to support sparse: https://docs.scipy.org/doc/scipy/reference/sparse.html
Hopefully, we can do at least this in Python
from matpower import start_instance
m = start_instance(engine="matlab")
m.runpf()
- Dominant language
- Python
- Stars
- 97
- Forks
- 13
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from mathworks/matlab-engine-for-python
-
Difficulty 1/5 Under an hour Newbie friendliness 78/100
-
Difficulty 3/5 1-2 days Newbie friendliness 38/100
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
All issues in mathworks/matlab-engine-for-python
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
qgis/QGIS-Documentation#11275 ·
-
bug priority:normal ready-for-dev
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
OpenHands/extensions#626 · 1 comment ·
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
CSCfi/sd-search-api#39 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
StevenBlack/hosts#3255 ·