Skip to content

Output array is read-only #10

@dineshbvadhia

Description

@dineshbvadhia

In the tests, performing an operation on the array test_fastnumpyio_save after it has been loaded gives an output array is read-only error:

start = timer()
for i in range(iterations):
    buffer = io.BytesIO(fastnumpyio_save_data)
    test_fastnumpyio_save=load(buffer)
print("fastnumpyio.load:",timedelta(seconds=timer()-start))

test_fastnumpyio_save *= 4.1
ValueError: output array is read-only

Why does it load a read-only array? Secondly, what is the best option to make the array mutable without incurring a performance penalty?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions