Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
bjudkewitz authored Dec 2, 2024
1 parent 9904444 commit 649a005
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,6 @@ b_loaded = h5['b']
e_loaded = h5['c']['e']
h5.keys()
```
In Jupyter, you can interactively explore the file structure:

<img width="484" alt="image" src="https://github.com/user-attachments/assets/87030329-1ebc-4a77-a1af-b04a83be74d2">


Create a new HDF5 file (or add items to existing file by setting argument `readonly=False`):
```python
Expand All @@ -86,7 +82,14 @@ lazyh5('/path/to/datafile.h5').from_dict(some_dict)
loaded = lazyh5('/path/to/datafile.h5').to_dict()
```

Old interface:
In Jupyter, you can interactively explore the file structure:

<img width="598" alt="image" src="https://github.com/user-attachments/assets/878d4af6-ce26-4ec3-9ba5-2701fba1c07e">


-----
<details><summary>Old interface (expand this)</summary>

```python
from daio.h5 import save_to_h5, load_from_h5
# save dict to HDF5 file:
Expand All @@ -95,3 +98,5 @@ save_to_h5('/path/to/datafile.h5', some_dict)
# load dict from HDF5 file:
dict_loaded = load_from_h5('/path/to/datafile.h5')
```

</details>

0 comments on commit 649a005

Please sign in to comment.