You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to inspect an h5 file with tree structure "/confocal/XY/...something.../raw". On initially opening in h5web under jupyter, left pane shows "/confocal" but opening this gives a blank plane.
Digging into the errors I found the following which seems to suggest the second slash is converted to '\\'
{"message": "Unhandled error", "reason": null, "traceback": "Traceback (most recent call last):\n File "C:\Users\u1774090\Anaconda3\envs\h5web\lib\site-packages\tornado\web.py", line 1702, in _execute\n result = method(*self.path_args, **self.path_kwargs)\n File "C:\Users\u1774090\Anaconda3\envs\h5web\lib\site-packages\tornado\web.py", line 3173, in wrapper\n return method(self, *args, **kwargs)\n File "C:\Users\u1774090\Anaconda3\envs\h5web\lib\site-packages\jupyterlab_h5web\handlers.py", line 26, in get\n content = self.get_content(h5file, path)\n File "C:\Users\u1774090\Anaconda3\envs\h5web\lib\site-packages\jupyterlab_h5web\handlers.py", line 59, in get_content\n return content.metadata()\n File "C:\Users\u1774090\Anaconda3\envs\h5web\lib\site-packages\h5grove\content.py", line 151, in metadata\n ("children", self._get_child_metadata_content(depth - 1)),\n File "C:\Users\u1774090\Anaconda3\envs\h5web\lib\site-packages\h5grove\content.py", line 139, in _get_child_metadata_content\n return [\n File "C:\Users\u1774090\Anaconda3\envs\h5web\lib\site-packages\h5grove\content.py", line 140, in \n create_content(self._h5file, os.path.join(self._path, child_path)).metadata(\n File "C:\Users\u1774090\Anaconda3\envs\h5web\lib\site-packages\h5grove\content.py", line 160, in create_content\n entity = get_entity_from_file(h5file, path, resolve_links)\n File "C:\Users\u1774090\Anaconda3\envs\h5web\lib\site-packages\h5grove\utils.py", line 34, in get_entity_from_file\n raise PathError(f"{path} is not a valid path in {basename(h5file.filename)}")\nh5grove.utils.PathError: /confocal\\XY is not a valid path in session-20211021-131238.hdf5\n"}
Expected behaviour
Should allow traversal of an h5 tree from root
Screenshots
Context
OS: Windows 10
Browser: Edge
Version: [e.g. 22]
H5Web context: jupyterlab_h5web + @h5web/lib
The text was updated successfully, but these errors were encountered:
Describe the bug
Trying to inspect an h5 file with tree structure "/confocal/XY/...something.../raw". On initially opening in h5web under jupyter, left pane shows "/confocal" but opening this gives a blank plane.
Digging into the errors I found the following which seems to suggest the second slash is converted to '\\'
{"message": "Unhandled error", "reason": null, "traceback": "Traceback (most recent call last):\n File "C:\Users\u1774090\Anaconda3\envs\h5web\lib\site-packages\tornado\web.py", line 1702, in _execute\n result = method(*self.path_args, **self.path_kwargs)\n File "C:\Users\u1774090\Anaconda3\envs\h5web\lib\site-packages\tornado\web.py", line 3173, in wrapper\n return method(self, *args, **kwargs)\n File "C:\Users\u1774090\Anaconda3\envs\h5web\lib\site-packages\jupyterlab_h5web\handlers.py", line 26, in get\n content = self.get_content(h5file, path)\n File "C:\Users\u1774090\Anaconda3\envs\h5web\lib\site-packages\jupyterlab_h5web\handlers.py", line 59, in get_content\n return content.metadata()\n File "C:\Users\u1774090\Anaconda3\envs\h5web\lib\site-packages\h5grove\content.py", line 151, in metadata\n ("children", self._get_child_metadata_content(depth - 1)),\n File "C:\Users\u1774090\Anaconda3\envs\h5web\lib\site-packages\h5grove\content.py", line 139, in _get_child_metadata_content\n return [\n File "C:\Users\u1774090\Anaconda3\envs\h5web\lib\site-packages\h5grove\content.py", line 140, in \n create_content(self._h5file, os.path.join(self._path, child_path)).metadata(\n File "C:\Users\u1774090\Anaconda3\envs\h5web\lib\site-packages\h5grove\content.py", line 160, in create_content\n entity = get_entity_from_file(h5file, path, resolve_links)\n File "C:\Users\u1774090\Anaconda3\envs\h5web\lib\site-packages\h5grove\utils.py", line 34, in get_entity_from_file\n raise PathError(f"{path} is not a valid path in {basename(h5file.filename)}")\nh5grove.utils.PathError: /confocal\\XY is not a valid path in session-20211021-131238.hdf5\n"}
Expected behaviour
Should allow traversal of an h5 tree from root
Screenshots
Context
The text was updated successfully, but these errors were encountered: