Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug in provider.py:write_features #25

Closed
kushal-sharma opened this issue Apr 30, 2018 · 2 comments
Closed

Bug in provider.py:write_features #25

kushal-sharma opened this issue Apr 30, 2018 · 2 comments
Labels

Comments

@kushal-sharma
Copy link

On line 341:
data_file.create_dataset('rgb', data=rgb, dtype='uint8')
On line 342:

    if len(rgb) > 0:
        data_file.create_dataset('rgb', data=rgb, dtype='uint8')

This causes problems while trying to save features_file.

Traceback (most recent call last):
  File "/home/sharma/miniconda3/envs/laser_int/lib/python3.6/pdb.py", line 1667, in main
    pdb._runscript(mainpyfile)
  File "/home/sharma/miniconda3/envs/laser_int/lib/python3.6/pdb.py", line 1548, in _runscript
    self.run(statement)
  File "/home/sharma/miniconda3/envs/laser_int/lib/python3.6/bdb.py", line 431, in run
    exec(cmd, globals, locals)
  File "<string>", line 1, in <module>
  File "/home/sharma/laser-integration/superpoint_graph/partition/partition.py", line 6, in <module>
    """
  File "partition/provider.py", line 343, in write_features
    data_file.create_dataset('rgb', data=rgb, dtype='uint8')
  File "/home/sharma/miniconda3/envs/laser_int/lib/python3.6/site-packages/h5py/_hl/group.py", line 109, in create_dataset
    self[name] = dset
  File "/home/sharma/miniconda3/envs/laser_int/lib/python3.6/site-packages/h5py/_hl/group.py", line 277, in __setitem__
    h5o.link(obj.id, self.id, name, lcpl=lcpl, lapl=self._lapl)
  File "h5py/_objects.pyx", line 54, in h5py._objects.with_phil.wrapper
  File "h5py/_objects.pyx", line 55, in h5py._objects.with_phil.wrapper
  File "h5py/h5o.pyx", line 202, in h5py.h5o.link
RuntimeError: Unable to create link (name already exists)
@loicland
Copy link
Owner

Hi,

right, you have to manually erase the feature files if you want to write some new ones. I will changed it this week to make it automatic, thanks for pointing it out.

cheers,

loic

@loicland
Copy link
Owner

loicland commented May 9, 2018

Hi,

the latest commit should have fixed your issue. let me know if it is not the case,

loic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants