Skip to content

Fails when MidiPiece contains np.floats #1

@roszcz

Description

@roszcz

The issue:

# This fails
import numpy as np
import json

a = np.float32(1)
json.dumps(a)

# This works
import numpy as np
import json
 
a = np.float32(1)
json.dumps(float(a))

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