Skip to content

Scale assignment fails using sdf.save() - AttributeError #4

@nilsmodrow

Description

@nilsmodrow

The example code below raises the error:
AttributeError: 'Dataset' object has no attribute 'make_scale'

The installed package versions are:
h5py 2.9.0
hdf5 1.10.4
sdf 0.3.5

Example code:

import sdf
import numpy as np

g = sdf.Group(name='/')

scale = sdf.Dataset(name='scale',
                    data=np.array([4, 5, 6]),
                    is_scale=True)
array = sdf.Dataset(name='array',
                    data=np.array([1, 2, 3]),
                    scales=[scale])

g.datasets.append(scale)
g.datasets.append(array)

sdf.save('test.sdf', g)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions