DiamondLightSource / SuRVoS

(Su)per (R)egion (Vo)lume (S)egmentaton workbench
Apache License 2.0
25 stars 5 forks source link

Adding a new label after loading from stored workspace #51

Closed srikanthnagella closed 6 years ago

srikanthnagella commented 6 years ago
OllyK commented 5 years ago

Hi Sri,

We're having a similar issue when updating label annotations on SuRVoS 1.1.3 but using Python 2.7:

+ Updating labels for [Level 1]
Traceback (most recent call last):
  File "/dls_sw/apps/SuRVoS_2018/lib/python2.7/site-packages/survos/plugins/annotations.py", line 517, in on_add_label
    self.save_labels(level)
  File "/dls_sw/apps/SuRVoS_2018/lib/python2.7/site-packages/survos/plugins/annotations.py", line 632, in save_labels
    parent_labels = self.LBLM.parent_labels(level)))
  File "/dls_sw/apps/SuRVoS_2018/lib/python2.7/site-packages/survos/core/model.py", line 218, in set_attrs
    f['data'].attrs[k] = v
  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 "/dls_sw/apps/SuRVoS_2018/lib/python2.7/site-packages/h5py/_hl/attrs.py", line 93, in __setitem__
    self.create(name, data=value, dtype=base.guess_dtype(value))
  File "/dls_sw/apps/SuRVoS_2018/lib/python2.7/site-packages/h5py/_hl/attrs.py", line 171, in create
    htype = h5t.py_create(original_dtype, logical=True)
  File "h5py/h5t.pyx", line 1543, in h5py.h5t.py_create
  File "h5py/h5t.pyx", line 1565, in h5py.h5t.py_create
  File "h5py/h5t.pyx", line 1626, in h5py.h5t.py_create
TypeError: No conversion path for dtype: dtype('<U7')
Aborted (core dumped)

Would you suggest that using Python 3.6 is the way to resolve? I can try next week, I was thinking it could be an ongoing issue with h5py though

Thanks,

Olly

srikanthnagella commented 5 years ago

Hi Olly,

Try 3.6 and if it doesn't work then i will look into the the problem.

Thanks Sri

On Fri, Nov 30, 2018 at 3:42 PM Olly King notifications@github.com wrote:

Hi Sri,

We're having a similar issue when updating label annotations on SuRVoS 1.1.3 but using Python 2.7:

  • Updating labels for [Level 1] Traceback (most recent call last): File "/dls_sw/apps/SuRVoS_2018/lib/python2.7/site-packages/survos/plugins/annotations.py", line 517, in on_add_label self.save_labels(level) File "/dls_sw/apps/SuRVoS_2018/lib/python2.7/site-packages/survos/plugins/annotations.py", line 632, in save_labels parent_labels = self.LBLM.parent_labels(level))) File "/dls_sw/apps/SuRVoS_2018/lib/python2.7/site-packages/survos/core/model.py", line 218, in set_attrs f['data'].attrs[k] = v 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 "/dls_sw/apps/SuRVoS_2018/lib/python2.7/site-packages/h5py/_hl/attrs.py", line 93, in setitem self.create(name, data=value, dtype=base.guess_dtype(value)) File "/dls_sw/apps/SuRVoS_2018/lib/python2.7/site-packages/h5py/_hl/attrs.py", line 171, in create htype = h5t.py_create(original_dtype, logical=True) File "h5py/h5t.pyx", line 1543, in h5py.h5t.py_create File "h5py/h5t.pyx", line 1565, in h5py.h5t.py_create File "h5py/h5t.pyx", line 1626, in h5py.h5t.py_create TypeError: No conversion path for dtype: dtype('<U7') Aborted (core dumped)

Would you suggest that using Python 3.6 is the way to resolve? I can try next week, I was thinking it could be an ongoing issue with h5py though

Thanks,

Olly

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/DiamondLightSource/SuRVoS/issues/51#issuecomment-443240793, or mute the thread https://github.com/notifications/unsubscribe-auth/AAovcZmo_gR4TTwXhvGUHPbsCRcVXzjMks5u0VHPgaJpZM4Wi8zf .