NRAO Home  >  Green Bank  |  Wiki Topic:    GB > Software > BalanceAPI (r1.1 vs. r1.8)
   Changes | Index | Contents | Search | Statistics | Go
 <<O>>  Difference Topic BalanceAPI (r1.8 - 15 Feb 2005 - NicoleRadziwill)
Deleted:
<
<

  Examples  
Changed:
<
<

The Balance API provides the programmer with an interface to perform balancing of the IF Rack, Spectral Processor, Spectrometer and Prime Focus receivers. It is written in python and can be used within other programs, from the Python Console, from the Astrid "Command Console", or within a session of the config_tool application.

>
>

The Balance API provides the programmer with an interface to perform balancing of the IF Rack, Spectral Processor, Spectrometer and Prime Focus receivers. It is written in python and can be used within other programs, from the Python Console, from the Astrid "Command Console", or within a session of the config_tool application.

Changed:
<
<

The astronomical observer has three choices:

>
>

PICK The astronomical observer has three choices, and should follow the instructions on other pages, linked here:

Changed:
<
<

The Balance API consists of the following classes: Balance, acs, pf, sp and ifrack. The user of the API needs only to create a Balance object. All functionality of the underlying classes are exposed through the Balance class interface.

>
>

The Balance API consists of the following classes: Balance, acs, pf, sp and ifrack. The programmer using the API needs only to create a Balance object. All functionality of the underlying classes are exposed through the Balance class interface.

Changed:
<
<

The Balance class serves as the interface to the API. Its function is to promote a clean interface to the observing API. Its use can most easily be described by an example.

>
>

The Balance class serves as the interface to the API. Its function is to promote a clean interface to the observing API. Its use can most easily be described by an example.

Added:
>
>

Deleted:
<
<

Added:
>
>

Changed:
<
<

The Balance API is a programmer's interface to balancing. The Observation API (and thus Scheduling Blocks and the turtle application) provide a simplified syntax to balancing. The observer should be aware that when he or she is writing a Scheduling Block, the syntax described in the "Balance" section of ObservingDirectives should be used. If the observer is balancing manually to satisfy special requirements of his or her observing, and does so from the Python command line or the Astrid "Command Console", the slightly more verbose syntax described at BalanceAPI must be used.

>
>

The Balance API is a programmer's interface to balancing. The Observation API (and thus Scheduling Blocks and the turtle application) provide a simplified syntax to balancing. The observer should be aware that when he or she is writing a Scheduling Block, the syntax described in the "Balance" section of ObservingDirectives should be used. If the observer is balancing manually to satisfy special requirements of his or her observing, and does so from the Python command line or the Astrid "Command Console", the slightly more verbose syntax described at BalanceUsage#BalancingWithAstrid must be used.


 <<O>>  Difference Topic BalanceAPI (r1.7 - 10 Feb 2005 - NicoleRadziwill)
Changed:
<
<

The Balance API provides the user with an interface to perform balancing of the IFRack, SpectralProcessor, Spectrometer and the Prime Focus receivers. It is written in python and can be used from the Python Console, the Astrid "Command Console", or the config_tool (if it is launched separately).

>
>

The Balance API provides the programmer with an interface to perform balancing of the IF Rack, Spectral Processor, Spectrometer and Prime Focus receivers. It is written in python and can be used within other programs, from the Python Console, from the Astrid "Command Console", or within a session of the config_tool application.

The astronomical observer has three choices:

Changed:
<
<

Anyone who used the Balance API prior to December 2004 will notice that there were changes made so that the new Balance API is not backwards compatible with the old one. These changes were requested by FrankGhigo, so please send him comments if you have problems.

>
>

The Balance API is a programmer's interface to balancing. The Observation API (and thus Scheduling Blocks and the turtle application) provide a simplified syntax to balancing. The observer should be aware that when he or she is writing a Scheduling Block, the syntax described in the "Balance" section of ObservingDirectives should be used. If the observer is balancing manually to satisfy special requirements of his or her observing, and does so from the Python command line or the Astrid "Command Console", the slightly more verbose syntax described at BalanceAPI must be used.


 <<O>>  Difference Topic BalanceAPI (r1.6 - 10 Feb 2005 - NicoleRadziwill)
Changed:
<
<

1. Introduction

>
>

1. Introduction

Changed:
<
<

The Balance API provides the user with an interface to perform balancing of the IFRack, SpectralProcessor, Spectrometer and the Prime Focus receivers. It is written in python and can be used from the python command prompt, the config tool or the Observation API.

>
>

The Balance API provides the user with an interface to perform balancing of the IFRack, SpectralProcessor, Spectrometer and the Prime Focus receivers. It is written in python and can be used from the Python Console, the Astrid "Command Console", or the config_tool (if it is launched separately).

Changed:
<
<

1.1 The Basic design

>
>

2. The Basic Design

Changed:
<
<

The balance api consists of the following classes: Balance, acs, pf, sp and ifrack. The user of the API need only create a Balance object. If desired, the other classes can be instantiated, but no additional functionality is gained by doing so. All functionality of the underlying classes are exposed through the

>
>

The Balance API consists of the following classes: Balance, acs, pf, sp and ifrack. The user of the API needs only to create a Balance object. All functionality of the underlying classes are exposed through the

Changed:
<
<


2. The Balance class

The Balance class serves as the interface to the API. Its function is to promote a clean interface to the observing API.
>
>

    2.1 The Balance class

    The Balance class serves as the interface to the API. Its function is to promote a clean interface to the observing API.
Changed:
<
<

First a Balance object is created with a list of the managers to be balanced.

>
>

First a Balance object is created with a list of the managers to be balanced.

Added:
>
>



Added:
>
>

Changed:
<
<

If no parameters are specifed, the ifrack is the default device.

>
>

If no parameters are specifed (e.g. if b = Balance() is used), the ifrack is the default device.

Added:
>
>



Added:
>
>

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 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.

2.2 Optional Parameters

Added:
>
>

Added:
>
>

3. Known Issues

Changed:
<
<

3. Known Issues

The old balancing API but is deprecated. Its use is currently still supported through the config tool API and the python command line, but will be removed in the first quarter of 2005.

>
>

Anyone who used the Balance API prior to December 2004 will notice that there were changes made so that the new Balance API is not backwards compatible with the old one. These changes were requested by FrankGhigo, so please send him comments if you have problems.

Changed:
<
<

4. Core Team

>
>

4. Core Team

Deleted:
<
<

Project Scientist: KarenONeil

 <<O>>  Difference Topic BalanceAPI (r1.5 - 03 Feb 2005 - AmyShelton)
Changed:
<
<

b = Balance(("pf", "ifrack"))

>
>

b = Balance(["pf", "ifrack"])


 <<O>>  Difference Topic BalanceAPI (r1.4 - 07 Dec 2004 - MelindaMello)
Changed:
<
<

The Balance API provides the user with an interface to perform balancing of the IFRack, SpectralProcessor?, Spectrometer and the Prime Focus receivers.

>
>

The Balance API provides the user with an interface to perform balancing of the IFRack, SpectralProcessor, Spectrometer and the Prime Focus receivers.

Changed:
<
<

The default values are:

>
>

The supported keywords and their default values are:

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 to theSpectrometer (acs) : sample_time = 2 Applicable when balancing the Prime Focus Receivers (pf) cal = 'off' Applicable when balancing the Prime Focus Receivers (pf)

Added:
>
>

The old balancing API but is deprecated. Its use is currently still supported through the config tool API and the python command line, but will be removed in the first quarter of 2005.


 <<O>>  Difference Topic BalanceAPI (r1.3 - 06 Dec 2004 - MelindaMello)
Changed:
<
<

The balance api consists of the following classes: Balance, ACS, Pf, Spp and IFRack.

>
>

The balance api consists of the following classes: Balance, acs, pf, sp and ifrack.

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


 <<O>>  Difference Topic BalanceAPI (r1.2 - 06 Dec 2004 - MelindaMello)
Changed:
<
<

b = Balance(("Pf", "IFRack"))

>
>

b = Balance(("Pf", "IFrack"))

Changed:
<
<

IFRack(IFRack) : NA

>
>

IFrack(Ifrack) : NA


 <<O>>  Difference Topic BalanceAPI (r1.1 - 02 Dec 2004 - MelindaMello)
Added:
>
>

%META:TOPICINFO{author="MelindaMello" date="1102017060" format="1.0" version="1.1"}%

GBT Balance API

  Main     Usage     Examples     Enhancement Requests     Troubleshooting     Updates  



1. Introduction

The Balance API provides the user with an interface to perform balancing of the IFRack, SpectralProcessor?, Spectrometer and the Prime Focus receivers. It is written in python and can be used from the python command prompt, the config tool or the Observation API.

1.1 The Basic design

The balance api consists of the following classes: Balance, ACS, Pf, Spp and IFRack. The user of the API need only create a Balance object. If desired, the other classes can be instantiated, but no additional functionality is gained by doing so. All functionality of the underlying classes are exposed through the Balance class interface.


2. The Balance class

The Balance class serves as the interface to the API. Its function is to promote a clean interface to the observing API. Its use can most easily be described by an example.

First a Balance object is created with a list of the managers to be balanced.

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. Known Issues


4. Core Team

Scientific Sponsor: KarenONeil FrankGhigo
Technical Leads: MelindaMello
Project Scientist: KarenONeil

-- MelindaMello - 02 Dec 2004


Topic BalanceAPI . { View | Diffs | r1.8 | > | r1.7 | > | r1.6 | More }
Revision r1.1 - 02 Dec 2004 - 19:51 GMT - MelindaMello
Revision r1.8 - 15 Feb 2005 - 15:57 GMT - NicoleRadziwill
Content copyright © 1999-2007 by the contributing authors.
All material on this collaboration platform is the property of the contributing authors.