Skip to content

Commit a03fea7

Browse files
Apply suggestions on code and text of the documentation
Co-authored-by: Maarten Sebregts <[email protected]>
1 parent d0c5c8e commit a03fea7

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

docs/source/courses/basic/analyze.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ Exercise 5
251251
Explore the DBEntry and occurrences
252252
'''''''''''''''''''''''''''''''''''
253253

254-
You may not know apriori which types of IDSs are available within an IMAS database entry.
254+
You may not know a priori 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
256256
this entry, in that case each IDS is stored as a separate `occurrence`
257257
(occurrences are identified with an integer value, 0 being the default).
Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
import imas
22

33
# Open input data entry
4-
entry = imas.DBEntry("imas:hdf5?path=<...>","r")
4+
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()
8-
for occ in entry.list_all_occurrences(idsname)])
7+
for idsname in imas.IDSFactory().ids_names():
8+
for occ in entry.list_all_occurrences(idsname):
9+
print(idsname, occ)
910

1011
entry.close()

0 commit comments

Comments
 (0)