File tree Expand file tree Collapse file tree
docs/source/courses/basic Expand file tree Collapse file tree Original file line number Diff line number Diff 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
254254You may not know apriori 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
Original file line number Diff line number Diff line change 11import imas
22
3- # Open input data entry
3+ # Open input data entry
44entry = 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
910entry .close ()
You can’t perform that action at this time.
0 commit comments