photons package
Console script entry points.
- photons.version_info = (0, 1, 0, 'dev0')
Contains the version information as a (major, minor, micro, releaselevel) tuple.
- Type:
- photons.main(*args)[source]
Main console script entry point.
Run
photons --helpfor more details.Examples
- Start the main application using the default configuration path
photons - Start the main application using the specified configuration file
photons my_config.xml - Start an equipment Service (using the default configuration path)
photons --alias shutter - Start an equipment Service using the specified configuration file
photons my_config.xml --alias shutter - Start a registered Service and specify kwargs
photons --name MyService --kwargs "{\"host\":\"localhost\", \"port\":1876}" - Start a JupyterLab web server
photons --jupyter - Find equipment
photons --find - Find equipment (with a 5-second timeout for network devices)
photons --find 5
- photons.start_service(*, alias=None, config=None, name=None, kwargs=None, no_user=False, **ignored)[source]
Start a Service.
- Parameters:
alias (
str) – The alias of an EquipmentRecord to start a generic equipment Service.config (
str) – The path to a configuration file. Not required if name is specified.name (
str) – The name of a registered Service to start.kwargs (
str) – The keyword arguments from the command line.no_user (
bool) – Whether to call input(‘Press <Enter> to exit… ‘) if there was an error.ignored – All other keyword arguments are ignored.
- Return type:
- Returns:
The exit code (0 for success, 1 for error).
Subpackages
- photons.analysis package
- photons.equipment package
- Subpackages
- Submodules
- photons.equipment.arroyo_6305 module
- photons.equipment.base module
- photons.equipment.coherent_fieldmaster module
- photons.equipment.dmm module
- photons.equipment.dmm_34401a module
- photons.equipment.dmm_344xxA module
- photons.equipment.dmm_3458A module
- photons.equipment.highfinesse module
- photons.equipment.highfinesse_sdk module
- photons.equipment.hrs_monochromator module
- photons.equipment.idq_time_controller module
- photons.equipment.keithley_6430 module
- photons.equipment.kinesis module
- photons.equipment.laser_superk module
- photons.equipment.nidaq module
- photons.equipment.oscilloscope module
- photons.equipment.oscilloscope_rigol module
- photons.equipment.shot702_controller module
- photons.equipment.shutter module
- photons.equipment.shutter_ksc101 module
- photons.equipment.shutter_s25120a module
- photons.equipment.sia_cmi module
- photons.equipment.thorlabs_flipper module
- photons.equipment.thorlabs_stage module
- photons.plugins package
- photons.services package
Submodules
- photons.app module
AppApp.added_connectionApp.removed_connectionApp.add_lab_logging_metadata()App.configApp.connect_equipment()App.connect_manager()App.connectionsApp.create_writer()App.databaseApp.disconnect_equipment()App.disconnect_managers()App.equipmentApp.link()App.linksApp.loggerApp.play_sound()App.plot()App.promptApp.records()App.run()App.send_email()App.set_logging_level()App.sleep()App.start_equipment_service()App.start_service()App.unlink()
MainWindowMainWindow.hide_progress_barMainWindow.show_indeterminate_progress_barMainWindow.status_bar_messageMainWindow.update_progress_barMainWindow.closeEvent()MainWindow.create_palette()MainWindow.dragEnterEvent()MainWindow.dropEvent()MainWindow.find_widget()MainWindow.on_added_connection()MainWindow.on_connections_triggered()MainWindow.on_dock_top_level_changed()MainWindow.on_hide_progress_bar()MainWindow.on_plugin_closed()MainWindow.on_plugins_triggered()MainWindow.on_removed_connection()MainWindow.on_show_indeterminate_progress_bar()MainWindow.on_status_bar_message()MainWindow.on_update_progress_bar()MainWindow.on_widget_closed()MainWindow.on_widgets_triggered()
- photons.audio module
- photons.io module
- photons.log module
- photons.network module
- photons.plotting module
- photons.samples module
- photons.utils module