question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

track_order not working on root group

See original GitHub issue

This is a duplicate of https://github.com/h5py/h5py/issues/1097, it was closed but I still experience this issue.

import tempfile
import h5py
print(h5py.version.info)
ft = tempfile.mktemp(suffix='.hdf5')
h5py.get_config().track_order = True
h5 = h5py.File(ft, mode='w', track_order=True)
h5.create_group('z')
h5.create_group('a')
print("File just created", h5.keys())
h5.close()
h5 = h5py.File(ft, mode='r', track_order=True)
print("After reopening", h5.keys())

Output:

Summary of the h5py configuration
---------------------------------

h5py    2.10.0
HDF5    1.10.5
Python  3.7.0 | packaged by conda-forge | (default, Nov 12 2018, 20:15:55) 
[GCC 7.3.0]
sys.platform    linux
sys.maxsize     9223372036854775807
numpy   1.17.5

File just created <KeysViewHDF5 ['z', 'a']>
After reopening <KeysViewHDF5 ['a', 'z']>

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:11 (10 by maintainers)

github_iconTop GitHub Comments

2reactions
vasolecommented, Aug 14, 2020

Please, try to write h5[“/”].keys() instead of h5.keys(). The former works as expected for me but not the latter.

0reactions
mgarortcommented, Jan 15, 2021

@vasole I come a bit late to this conversation but I confirm that for me h5["/"].keys() keeps the order but h5.keys() does not.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Route: Track Everything In One Place
Track Everything You Order in the Route App. Get shipping notifications and real-time status updates on any delivery.
Read more >
Delivery Information
Delivery Information. To accommodate the best possible customer experience, we offer 3 different service levels for shipping.
Read more >
Route: Package Tracker on the App Store - Apple
Route is the premier package tracker for all of your online orders. Join over 50 Million people who have tracked their orders with...
Read more >
Order Look Up
Order Status. To view the order, please enter the order number and the Last Name or the Phone Number associated with the order....
Read more >
View Your Online Order At GNC
The tracking information is accessible from Your Order History on our website when it becomes available. *Tracking information may not be available for...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found