Skip to content

Commit d0c5c8e

Browse files
committed
Minor edit
1 parent ff0f628 commit d0c5c8e

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

docs/source/courses/basic/analyze.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,8 +248,8 @@ Exercise 5
248248
.. seealso:: :ref:`Lazy loading`
249249

250250

251-
Explore the DBEntry
252-
'''''''''''''''''''
251+
Explore the DBEntry and occurrences
252+
'''''''''''''''''''''''''''''''''''
253253

254254
You may not know apriori which types of IDSs are available within an IMAS database entry.
255255
It can also happen that several IDSs objects of the same type are stored within
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
import imas
22

3-
# Open input data entry
3+
# Open input data entry
44
entry = imas.DBEntry("imas:hdf5?path=<...>","r")
55

66
# Print the list of available IDSs with their occurrence
7-
print([(idsname,occ) for idsname in imas.IDSFactory().ids_names() for occ in entry.list_all_occurrences(idsname)])
7+
print([(idsname,occ) for idsname in imas.IDSFactory().ids_names()
8+
for occ in entry.list_all_occurrences(idsname)])
89

910
entry.close()

0 commit comments

Comments
 (0)