| <<O>> Difference Topic BalanceUsage (r1.9 - 07 Apr 2005 - MelindaMello) |
| Changed: | |
| < < | b.bal(mgrs=("pf", "ifrack", "acs"), options = opt) |
| > > | g.bal(mgrs=("pf", "ifrack", "acs"), options = opt) |
| <<O>> Difference Topic BalanceUsage (r1.8 - 15 Feb 2005 - NicoleRadziwill) |
| Deleted: | ||
| < < |
| |
| Changed: | ||
| < < |
1. Introduction | |
| > > |
1. Introduction | |
| Changed: | ||
| < < | Recommended practices for visiting observers: | |
| > > | Recommended practices for visiting observers: | |
| Changed: | ||
| < < |
| |
| > > |
| |
| Changed: | ||
| < < | Advanced methods also available for staff scientists and programmers include: | |
| > > | Advanced methods also available for staff scientists and programmers include: | |
| Changed: | ||
| < < |
| |
| > > |
| |
| Changed: | ||
| < < |
2. Balancing from the Python Command Line | |
| > > |
2. Balancing from the Python Command Line | |
| Changed: | ||
| < < | From the command line, the Balance class serves as the interface to the API. Its use can most easily be described by an example. | |
| > > | From the command line, the Balance class serves as the interface to the API. Its use can most easily be described by an example. | |
| Added: | ||
| > > |
3. Balancing from the Config Tool | |
| Changed: | ||
| < < |
3. Balancing from the Config ToolThe config tool provides its own interface to the Balance API. The interface is through one method called bal(). The bal() method accepts the following optional parameters: | |
| > > | The config tool provides its own interface to the Balance API. The interface is through one method called bal(). The bal() method accepts the following optional parameters: | |
| Deleted: | ||
| < < | ||
| Deleted: | ||
| < < | ||
| Deleted: | ||
| < < | ||
| Deleted: | ||
| < < | ||
| Deleted: | ||
| < < | ||
| Changed: | ||
| < < | To perform a balance from the config tool interface type : | |
| > > | To perform a balance from the config_tool interface type : | |
| Deleted: | ||
| < < | ||
| Changed: | ||
| < < | This results in the IFRack to be balanced. | |
| > > | This results in the IFRack being balanced. | |
| Changed: | ||
| < < | Results in balancing the Prime Focus Receiver, followed by the IFRack, followed by the Spectrometer. The default parameters are used in balancing all the devices. | |
| > > | Results in balancing the Prime Focus Receiver, followed by the IFRack, followed by the Spectrometer. The default parameters are used in balancing all the devices. | |
| Changed: | ||
| < < | Alternately to specify balancing options | |
| > > | Alternately, to specify balancing options directly, | |
| Deleted: | ||
| < < | ||
| Changed: | ||
| < < | The Prime Focus receiver will be balanced with the sample_time of 5 and the cal diodes "on" (if they are currently "on") | |
| > > | The Prime Focus receiver will be balanced with the sample_time of 5 and the cal diodes "on" (if they are currently "on"). The IFRack will be balanced (Note that there are no balancing options for the IFRack). The Spectrometer will be balanced with the resulting duty cycles displayed for ports 9 and 13. | |
| Deleted: | ||
| < < | The IFRack will be balanced. Note that there are no balancing options for the IFRack | |
| Deleted: | ||
| < < | The Spectrometer will be balanced with the resulting duty cycles displayed for ports 9 and13 | |
| Added: | ||
| > > |
4. Balancing from the Astromomers Integrated Desktop (Astrid) | |
| Changed: | ||
| < < |
4. Balancing from the Astromomers Integrated Desktop (Astrid)Astrid contains a python shell that includes both the Balance and Configuration Tool APIs. From the Astrid python shell follow either the directions for using the config_tool or the Balance API found above in Sections 2 and 3. | |
| > > |
Balancing During an ObservationBalancing is often done prior to a scan, which can be easily commanded into a Scheduling Block. Full instructions can be found here, under instructions forBalance.
Balancing While a Scan is RunningAstrid contains a python shell, called the "Command Console" that comes with both the Balance and Configuration APIs pre-loaded. If an astronomer wishes to balance in-process, that is, while a scan is underway, he or she should follow either the directions for using the config_tool or the Balance API found above in Sections 2 and 3. The recommended syntax is:
Balance(["ifrack"])
OR
Balance(("ifrack",))
Be sure to remember the trailing comma if a tuple is chosen for input to Balance.
For balancing multiple devices:
Balance(["ifrack","pf","sp","acs"])
OR
Balance(("ifrack","pf","sp","acs"))
| |
| Changed: | ||
| < < |
5. Core Team | |
| > > |
5. Core Team | |
| <<O>> Difference Topic BalanceUsage (r1.7 - 10 Feb 2005 - NicoleRadziwill) |
| Changed: | |
| < < | There are 3 ways to use the Balance API: through the Python Command Line, the Astrid "Command Console", or the config_tool if is it loaded separately. |
| > > | There are many ways to access the Balance API: |
| Changed: | |
| < < |
1.1 Supported DevicesThe supported devices are the Spectrometer ("acs"), IF Rack ("ifrack"), Prime Focus Receivers ("pf"), BCPM ("bcpm") and the Spectral Processor ("sp"). In order for a balance of the Prime Focus receiver to be accomplished, it MUST BE SELECTED in the Scan Coordinator's "receiver" parameter before the balance command is performed. |
| > > |
Recommended practices for visiting observers:
|
| Added: | |
| > > |
Regardless of what technique is selected, five devices are supported. These are:
|
| <<O>> Difference Topic BalanceUsage (r1.6 - 10 Feb 2005 - NicoleRadziwill) |
| Changed: | |||
| < < | There are 3 ways to use the Balance API: through the python command line, the config tool and the Observing API. The config tool and the Observing API both have a user interface to the Balance API. | ||
| > > | There are 3 ways to use the Balance API: through the Python Command Line, the Astrid "Command Console", or the config_tool if is it loaded separately. | ||
| Added: | |||
| > > |
| ||
| Changed: | |||
| < < | The supported devices are the Spectrometer ("acs"), IF Rack ("ifrack"), Prime Focus Receivers ("pf"). BCPM (bcpm) and the SpectralProcessor ("spp"). In order for a balance of the Prime Focus receiver to be accomplished, it must be selected in the ScanCoordinators' "receiver" parameter before the balance command is performed. | ||
| > > |
The supported devices are the Spectrometer ("acs"), IF Rack ("ifrack"), Prime Focus Receivers ("pf"), BCPM ("bcpm") and the Spectral Processor ("sp").
In order for a balance of the Prime Focus receiver to be accomplished, it MUST BE SELECTED in the Scan Coordinator's "receiver" parameter before the balance command is performed.
2. Balancing from the Python Command Line | ||
| Deleted: | |||
| < < |
2. Balancing from the python command line | ||
| Changed: | |||
| < < | * From python import the Balance module: | ||
| > > |
| ||
| Added: | |||
| > > | |||
| Added: | |||
| > > |
| ||
| Changed: | |||
| < < | * Create a Balance object with a list of the devices to be balanced. Supported devices are "acs", "ifrack", "pf", "bcpm" and "spp". | ||
| > > |
b = Balance(["pf", "ifrack"])
| ||
| Changed: | |||
| < < | b = Balance(("pf", "ifrack")) If no parameters are specifed, the ifrack is the default device. | ||
| > > | If no parameters are specifed, the ifrack will be treated as the default device. | ||
| Added: | |||
| > > |
| ||
| Added: | |||
| > > | |||
| Deleted: | |||
| < < |
| ||
| <<O>> Difference Topic BalanceUsage (r1.5 - 27 Jan 2005 - MelindaMello) |
| Changed: | |
| < < | The supported devices are the Spectrometer ("acs"), IF Rack ("ifrack"), Prime Focus Receivers ("pf") and the SpectralProcessor ("sp"). |
| > > | The supported devices are the Spectrometer ("acs"), IF Rack ("ifrack"), Prime Focus Receivers ("pf"). BCPM (bcpm) and the SpectralProcessor ("spp"). |
| Changed: | |
| < < | * Create a Balance object with a list of the devices to be balanced. Supported devices are "acs", "ifrack", "pf" and "sp". |
| > > | * Create a Balance object with a list of the devices to be balanced. Supported devices are "acs", "ifrack", "pf", "bcpm" and "spp". |
| Changed: | |
| < < | target_level = -11 Applicable when balancing the SpectralProcessor? (sp) : |
| > > | target_level = -11 Applicable when balancing the SpectralProcessor? (spp) : |
| Changed: | |
| < < |
|
| > > |
|
| Changed: | |
| < < |
4. Core Team |
| > > |
4. Balancing from the Astromomers Integrated Desktop (Astrid)Astrid contains a python shell that includes both the Balance and Configuration Tool APIs. From the Astrid python shell follow either the directions for using the config_tool or the Balance API found above in Sections 2 and 3.5. Core Team |
| <<O>> Difference Topic BalanceUsage (r1.4 - 07 Dec 2004 - MelindaMello) |
| Changed: | |
| < < | from gbt.ygor.Balance import * |
| > > | from Balance import * |
| Changed: | |
| < < | SpectralProcess? (sp) : target_level = -11 Spectrometer (acs) : port = (1..41) PrimeFocusReceivers?(pf) : sample_time = 2, cal = 'off' IFRack(ifrack) : NA |
| > > | target_level = -11 Applicable when balancing the SpectralProcessor? (sp) : port = (1..41) Applicable when balancing the Spectrometer (acs) sample_time = 2 Applicable when balancing thePrimeFocusReceivers(pf) cal = 'off' Applicable when balancing the PrimeFocusReceivers?(pf) |
| Added: | |
| > > | |
| Changed: | |
| < < | The config tool provides its own interface to the Balance API. The interface is through one method called bal(). |
| > > | The config tool provides its own interface to the Balance API. The interface is through one method called bal(). |
| Changed: | |
| < < | mgrs = a list of devices to be balanced ( Supported devices are "acs", "ifrack", "pf" and "sp" ) options = a python dictionary that contains balancing options sim = a simulation flag . Setting sim = 1 will cause the bal method to not actally balance the devices |
| > > |
|
| Changed: | |
| < < | mgrs : ("ifrack",) options : { "target_level" : -11, |
| > > |
|
| Deleted: | |
| < < | sim : 0 |
| Changed: | |
| < < | To perform a balance from the config tool interface type : |
| > > |
|
| Added: | |
| > > |
To perform a balance from the config tool interface type :
|
| Changed: | |
| < < | |
| > > | |
| Added: | |
| > > |
The command:
|
| Changed: | |
| < < | |
| > > | |
| Changed: | |
| < < | alternately to specify balancing options |
| > > | Alternately to specify balancing options |
| Changed: | |
| < < | The Spectrometer will be balanced with the with the resulting duty cycles displayed for ports 9 and13 |
| > > | The Spectrometer will be balanced with the resulting duty cycles displayed for ports 9 and13 |
| <<O>> Difference Topic BalanceUsage (r1.3 - 06 Dec 2004 - MelindaMello) |
| Changed: | |
| < < | The supported devices are the Spectrometer ("ACS"), IF Rack ("IFrack"), Prime Focus Receivers ("Pf") and the SpectralProcessor ("Spp"). |
| > > | The supported devices are the Spectrometer ("acs"), IF Rack ("ifrack"), Prime Focus Receivers ("pf") and the SpectralProcessor ("sp"). |
| Changed: | |
| < < | * Create a Balance object with a list of the devices to be balanced. Supported devices are "ACS", "IFrack", "Pf" and "Spp". |
| > > | * Create a Balance object with a list of the devices to be balanced. Supported devices are "acs", "ifrack", "pf" and "sp". |
| Changed: | |
| < < | b = Balance(("Pf", "IFrack")) |
| > > | b = Balance(("pf", "ifrack")) |
| Changed: | |
| < < | If no parameters are specifed, the IFrack is the default device. |
| > > | If no parameters are specifed, the ifrack is the default device. |
| Changed: | |
| < < | SpectralProcess? (Spp) : target_level = -11 Spectrometer (ACS) : port = (1..41) PrimeFocusReceivers?(Pf) : sample_time = 2, cal = 'off' IFRack(IFRack) : NA |
| > > | SpectralProcess? (sp) : target_level = -11 Spectrometer (acs) : port = (1..41) PrimeFocusReceivers?(pf) : sample_time = 2, cal = 'off' IFRack(ifrack) : NA |
| Changed: | |
| < < | mgrs = a list of devices to be balanced ( Supported devices are "ACS", "IFRack", "Pf" and "Spp" ) |
| > > | mgrs = a list of devices to be balanced ( Supported devices are "acs", "ifrack", "pf" and "sp" ) |
| Changed: | |
| < < | mgrs : ("IFRack",) |
| > > | mgrs : ("ifrack",) |
| Changed: | |
| < < | g.bal(mgrs=("Pf", "IFRack", "ACS")) |
| > > | g.bal(mgrs=("pf", "ifrack", "acs")) |
| Changed: | |
| < < | b.bal(mgrs=("Pf", "IFRack", "ACS"), options = opt) |
| > > | b.bal(mgrs=("pf", "ifrack", "acs"), options = opt) |
| <<O>> Difference Topic BalanceUsage (r1.2 - 06 Dec 2004 - AmyShelton) |
| Changed: | |
| < < | The supported devices are the Spectrometer ("ACS"), IF Rack ("IFRack"), Prime Focus Receivers ("Pf") and the SpectralProcessor ("Spp"). |
| > > | The supported devices are the Spectrometer ("ACS"), IF Rack ("IFrack"), Prime Focus Receivers ("Pf") and the SpectralProcessor ("Spp"). |
| Changed: | |
| < < | * Create a Balance object with a list of the devices to be balanced. Supported devices are "ACS", "IFRack", "Pf" and "Spp". |
| > > | * Create a Balance object with a list of the devices to be balanced. Supported devices are "ACS", "IFrack", "Pf" and "Spp". |
| Changed: | |
| < < | b = Balance(("Pf", "IFRack")) |
| > > | b = Balance(("Pf", "IFrack")) |
| Changed: | |
| < < | If no parameters are specifed, the IFRack is the default device. |
| > > | If no parameters are specifed, the IFrack is the default device. |
| Changed: | |
| < < | The balance method performs a balance on each of the devices specified in the constructor. In this example, balancing is performed with the default balancing options for each device. The devices are balanced in the order specified in the list. In the above example, the Prime Focus receiver is balanced first, followed by the IFRack. |
| > > | The balance method performs a balance on each of the devices specified in the constructor. In this example, balancing is performed with the default balancing options for each device. The devices are balanced in the order specified in the list. In the above example, the Prime Focus receiver is balanced first, followed by the IFrack. |
| <<O>> Difference Topic BalanceUsage (r1.1 - 02 Dec 2004 - MelindaMello) |
| Added: | |||||||||||||
| > > |
%META:TOPICINFO{author="MelindaMello" date="1102022220" format="1.0" version="1.1"}%
GBT Balance Usage
1. IntroductionThere are 3 ways to use the Balance API: through the python command line, the config tool and the Observing API. The config tool and the Observing API both have a user interface to the Balance API.1.1 Supported DevicesThe supported devices are the Spectrometer ("ACS"), IF Rack ("IFRack"), Prime Focus Receivers ("Pf") and the SpectralProcessor ("Spp"). In order for a balance of the Prime Focus receiver to be accomplished, it must be selected in the ScanCoordinators' "receiver" parameter before the balance command is performed.2. Balancing from the python command lineFrom the command line, the Balance class serves as the interface to the API. Its use can most easily be described by an example. * From python import the Balance module: from gbt.ygor.Balance import * * Create a Balance object with a list of the devices to be balanced. Supported devices are "ACS", "IFRack", "Pf" and "Spp". b = Balance(("Pf", "IFRack")) If no parameters are specifed, the IFRack is the default device. *To perform the balance, the balance method is called. b.balance() The balance method performs a balance on each of the devices specified in the constructor. In this example, balancing is performed with the default balancing options for each device. The devices are balanced in the order specified in the list. In the above example, the Prime Focus receiver is balanced first, followed by the IFRack. An optional parameter to the balance method can be provided. This parameter must be a dictionary that contains 1 or more of the following balancing options. Items which are not in the dictionary are assigned their default values. Non applicable options are ignored. The default values are:
SpectralProcess (Spp) : target_level = -11
Spectrometer (ACS) : port = (1..41)
PrimeFocusReceivers(Pf) : sample_time = 2, cal = 'off'
IFRack(IFRack) : NA
Supported dictionary keys/value type are:
target_level / float
sample_time / int
cal / string containing "on" or "off" -- other values will be treated as if "on" was specified
port/ tuple containing integers from 1 to 41
An example of a dictionary containing valid options and its use in a balance method call is:
opt = { "target_level": 4,
"sample_time" : 5,
"cal" : "on",
"port" : (9,13)
}
b.balance(opt)
3. Balancing from the Config ToolThe config tool provides its own interface to the Balance API. The interface is through one method called bal(). The bal() method accepts the following optional parameters: mgrs = a list of devices to be balanced ( Supported devices are "ACS", "IFRack", "Pf" and "Spp" ) options = a python dictionary that contains balancing options sim = a simulation flag . Setting sim = 1 will cause the bal method to not actally balance the devices All the parameters are optional. The default values for these parameters are: mgrs : ("IFRack",) options : { "target_level" : -11, "sample_time" : 2, "cal" : "off", "port" : (1..41) } sim : 0 To perform a balance from the config tool interface type : g = gbtsetup() g.bal() This results in the IFRack to be balanced. g.bal(mgrs=("Pf", "IFRack", "ACS")) Results in balancing the Prime Focus Receiver, followed by the IFRack, followed by the Spectrometer. The default parameters are used in balancing all the devices. alternately to specify balancing options
opt = { "sample_time" : 5,
"cal" : "on",
"port" : (9,13)
}
b.bal(mgrs=("Pf", "IFRack", "ACS"), options = opt)
The Prime Focus receiver will be balanced with the sample_time of 5 and the cal diodes "on" (if they are currently "on")
The IFRack will be balanced. Note that there are no balancing options for the IFRack
The Spectrometer will be balanced with the with the resulting duty cycles displayed for ports 9 and13
4. Core Team
| ||||||||||||
| Topic BalanceUsage . { View | Diffs | r1.9 | > | r1.8 | > | r1.7 | More } |
|
Revision r1.1 - 02 Dec 2004 - 21:17 GMT - MelindaMello Revision r1.9 - 07 Apr 2005 - 15:54 GMT - MelindaMello |
Content copyright © 1999-2007 by the contributing authors. All material on this collaboration platform is the property of the contributing authors. |