File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
docs/source/courses/basic Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -251,7 +251,7 @@ Exercise 5
251251Explore 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.
255255It can also happen that several IDSs objects of the same type are stored within
256256this entry, in that case each IDS is stored as a separate `occurrence `
257257(occurrences are identified with an integer value, 0 being the default).
Original file line number Diff line number Diff line change 11import 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
1011entry .close ()
You can’t perform that action at this time.
0 commit comments