...
Code Block |
---|
import imas import getpass from imas import imasdef data_entry = imas.DBEntry(imasdef.MDSPLUS_BACKEND, 'data_access_tutorial', 15000, 1, user_name=getpass.getuser()) #opens the pulse file associated to the Data Entry object 'data_entry' previously created data_entry.open() #reads the 'magnetics' IDS data using get() camera_visible_ids= data_entry.get('camera_visible',0) #prints some IDS attributes print('homogeneous_time = ', camera_visible_ids.ids_properties.homogeneous_time) for i in range(3): print("Frame : ", i) print(camera_visible_ids.channel[0].detector[0].frame[i].image_raw) #prints the content of this 2D array print("-----") #closes the pulse file associated to the 'data_entry' object data_entry.close() |
...