Skip to content

Support sparse array #60

Description

@yasirroni

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()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions