Skip to content

Bug: Units rpm and do not match #97

@SebGue

Description

@SebGue

Hello @helene-t ,

I got some data object but I'm not able to use plot method due to an error.
My object is as follows

from SciDataTool import Data1D, DataND
import numpy as np

spd = np.linspace(0, 1000, 20)
current = np.ones((20,1))

speed = Data1D(name="Speed", unit="rpm", values=spd, is_components=True)

axes = [speed]
kwargs = dict(name="Current RMS", unit="A", symbol="I")
data = DataND(axes=axes, values=current, **kwargs)

data.plot()

What am I doing wrong?

Best regards, Sebastian

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions