finesse_virgo.virgo.Virgo¶
Overview
- class finesse_virgo.virgo.Virgo(files_to_parse=None, display_plots=False, thermal_state=None, use_3f_error_signals=False, with_apertures=False, maxtem=None, verbose=False, x_scale=1, zero_k00=False, add_locks=True, parse_additional_katscript=False, control_scheme=None)[source]¶
Bases:
objectContainer for the Virgo tuning script which houses and configures the model through individual steps producing a tuned interferometer.
- Parameters:
- files_to_parsestr or list of str, optional
- File name(s) or directory name to use when parsing.
When a directory name is given, all files with ending .kat will be parsed in alphabetical order. A file name can be given as a string, several file names will be provided as a list of strings. If this variable is not empty, common file included in the package will be used.
- display_plotsbool, optional
Automatically display plots for certain methods.
- thermal_statestr, optional
Thermal configuration to use when creating the model.
- use_3f_error_signalsbool, optional
Sets the control scheme to use the 3f error signals.
- verbosebool, optional
Class-wide option to set the verbosity.
- add_locksbool, optional
- If unset, will skip parsing the locks. Use when the locks should not be
added on initialization.
- parse_additional_katscriptbool, optional
- If set, will parse the accompanying additional katscript file. Use when
parsing only a modified common file rather than a pretuned file.
- x_scalefloat, optional
Convenience function to set the x_scale.
- zero_k00bool, optional
Convenience function to set zero_k00 phase configuration.
- with_aperturesbool, optional
Convenience function to automaticaly apply apertures to the mirror.
- maxtemstr|int|tuple, optional
- Convenience function to set the modes. Valid options: ‘off’, number
of maxtem, or tuple with modes and maxtem, e.g., (‘even’, 4).
Properties
Return the sensing matrix if it exists, otherwise calculate it. |
Methods
|
|
Adds the locks contained within the control scheme. |
|
|
Adjust cavity length so that it fulfils the requirement: |
|
Applies a circular aperture surface map to the mirror. |
|
_summary_ |
|
|
|
Extracts the name of the dof controlled by the lock. |
|
Sweep across a DoF, reading out at the provided detector. |
|
Return the DARM transfer function. |
|
|
|
Returns the lock object currently enabled for the DOF. |
Returns a dictionary of dof tunings, keyed by dof. |
|
Returns a dictionary, keyed by component name, with a list of dof/amp pairs driving each component. |
|
Returns a list of error signals, keyed by dof. |
|
|
|
Returns a dictionary of phi tunings, keyed by optic. |
|
Return a dictionary of carrier powers keyed by detector. |
|
|
Calculate and return a new sensing matrix. |
Returns a curated list of important settings from the model. |
|
|
Return the full phi + DC tuning for the optic/dof. |
|
Sums together current phi position and all dof contributions. |
|
Performs full make process. |
|
Optimizes the focal point of the thermal lenses by minimizing a figure of merit as defined by the opt_tl detector. |
|
Optimize the demodulation phases. |
|
|
|
Plots the DARM TF. |
|
Plots the quantum noise limited sensitivity. |
|
Plot grid of error signals. |
|
Plot grid of dof plots of interest when pretuning. |
|
Plots a radar plot for a readout according to the sensing matrix. |
|
Plots the sensing matrix as a grid of radar plots. |
|
|
|
|
Display a table of DOFs, the readout error signals, and their current values. |
|
|
|
Display a table listing the carrier powers and power ratios. |
|
Convenience function for get/plot/print nomenclature consistency. |
|
|
Uses the sensing matrix to convert the dof readout power from Watts to meters and vice versa. |
|
|
|
Sets phi parameter for provided dictionary keyed by mirror. |
|
Sets thermal parameter values for the provided state. |
|
Sets the phi parameters on the mirrors and zeroes all dofs so that all tunings are contained within the mirrors (rather than a combination of phi+dof.DC). |
Update the local sensing matrix. |
|
|
Convenience function to use apertures. |
|
This function will move the current DoF DC values into the phi parameter of the driven component before resetting the DoF DC value to zero. |