Skip to content

Load function not working #4

@weidinger-c

Description

@weidinger-c

Hi, I wanted to try out your save and load functions, but got this error with your load function:

save("/media/w/numpy_array_fast.npy", numpy_array)
load("/media/w/numpy_array_fast.npy")
Exception has occurred: ValueError
invalid literal for int() with base 10: '                                             '
  File "/workspaces/tile_db/tiledb/tiledb.py", line 29, in <genexpr>
    shape = tuple(int(num) for num in str(header[60:120], 'utf-8').replace(', }', '').replace('(', '').replace(')', '').split(','))
  File "/workspaces/tile_db/tiledb/tiledb.py", line 29, in load
    shape = tuple(int(num) for num in str(header[60:120], 'utf-8').replace(', }', '').replace('(', '').replace(')', '').split(','))
  File "/workspaces/tile_db/tiledb/tiledb.py", line 332, in import_las_file
    load("/media/w/numpy_array_fast.npy")
  File "/workspaces/tile_db/samples/create_db.py", line 25, in <module>
    db_accessor.import_las_file(las_filepath)
ValueError: invalid literal for int() with base 10: '      

I am using numpy 2.0.0, if that helps.

Thanks.

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