Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

In the above example, the pulse file is created then closed. However no data have been yet saved to the pulse file (the file ids_150000001.datafilefile is empty).



Note

To use the HDF5 backend instead of the MDS+ backend, you need simply to replace imasdef.MDSPLUS_BACKEND by imasdef.HDF5_BACKEND in the code above. 
In this case, the HDF5 master pulse file is located in ~/public/imasdb/data_access_tutorial/3/15000/1:

<g2lfleur@s52 ~>ls -alh ~/public/imasdb/data_access_tutorial/3/15000/1
total 6.0K
drwxr-xr-x 2 g2lfleur g2itmdev 2.0K Sep 20 10:15 .
drwxr-xr-x 3 g2lfleur g2itmdev 2.0K Sep 20 10:15 ..
-rw-r--r-- 1 g2lfleur g2itmdev 2.0K Sep 20 10:15 master.h5

Only the master.h5 is present. No IDS file has been yet created since no IDS data have been yet written (the master.h5 file is referencing the IDS files when present, please see the User Guide documentation on the HDF5 backend files organization for more details).


open/close

The following code opens the existing MDS+ pulse file created previously for shot=15000, run=1, from the 'data_access_tutorial' database of the current user:

...