magic

Initial magic commands and hooks for the spock IPython environment

Functions

edmac(self, parameter_s='')[source]

edmac <macro name> [<module>] Returns the contents of the macro file which contains the macro code for the given macro name. If the module is given and it does not exist a new one is created. If the given module is a simple module name and it does not exist, it will be created on the first directory mentioned in the MacroPath

showscan(self, parameter_s='')[source]

Shows a scan in a GUI.

Accepts one optional argument:

  • online - plot scans online

  • <ScanID> - plot scan of the given ID offline

  • no argument - plot the last scan offline

Where online means plot the scan as it runs and offline means - extract the scan data from the file - works only with HDF5 files.