AtacamaLargeMillimeterArray ACS Training Using the Python Error System.

Slides:



Advertisements
Similar presentations
ADASS XV ACS as the Framework for Integrating Offline Data Reduction in ALMA Steve Harrington, NRAO.
Advertisements

ESO - Tokyo July, 2005 ALMA Common Software Training- Course Session 1b Distributed Systems G.Chiozzi.
Def f(n): if (n == 0): return else: print(“*”) return f(n-1) f(3)
RPC Robert Grimm New York University Remote Procedure Calls.
Q and A for Chapter 3.4 – 3.14 CS 104 Victor Norman.
1 Classes Object-oriented programming: Model the problem as a collection of objects that have certain attributes and interact with one another and/or the.
1 Lab Session-1 CSIT221 Fall 2002 b Refresher slides b Practice Problem b Lab Exercise (Demo Required)
ACS Configuration Database(s)
1st ACS Workshop UTFSM ALMA Common Software Training- Course ACS Characteristic Components 1st ACS Workshop UTFSM, Valparaiso, Chile G.Chiozzi, …..
ACS Workshop UCN BACI properties Atacama Large Millimeter Array Alessandro Caproni European Southern Observatory BACI properties.
AtacamaLargeMillimeterArray ACS Training Time System.
Container-component model and XML in ALMA ACS Heiko Sommer (ESO), Gianluca Chiozzi (ESO), Klemen Zagar (Cosylab) and Markus Völter.
AtacamaLargeMillimeterArray ACS Training Developing Python Clients.
The ALMA Common Software: a developer friendly CORBA-based framework G.Chiozzi d, B.Jeram a, H.Sommer a, A.Caproni e, M.Pesko bc, M.Sekoranja b, K.Zagar.
50mm Telescope ACS Course Garching, 15 th to 19 th January 2007 January 2007Garching.
Python: Modularisation Damian Gordon. Modularisation Remember the prime checker program:
ACS Error System Using it in JAVA Sohaila Lucero NRAO.
Integrating the CERN laser alarm system with the ALMA common Software SPIE, Orlando, May 2006 Integrating the CERN LASER Alarm System with the ALMA Common.
Introduction to Pyrex September 2002 Brian Quinlan
ALMA Control SW & ACS Ralph Marson (NRAO). ALMA Project ACS Course, June 22 – July , Garching, Germany Physical Layout of the M&C network.
Tokyo July, 2005 ACS Characteristic Components B. Jeram, …..
ALMA Common Software Basic Track Component implementation guidelines.
ACS Logging System APIs: C++ Bogdan Jeram European Southern Observatory July 2004NRAO.
1 Cisco Unified Application Environment Developers Conference 2008© 2008 Cisco Systems, Inc. All rights reserved.Cisco Public Introduction to Etch Scott.
ICALEPCS Archamp 08 – 09 October, 2005 ACS Alarm system prototype Alessandro Caproni.
ACS Error System APIs: C++ Bogdan Jeram European Southern Observatory July 2005ESO.
Reproduction interdite © ALMA EUROPEAN CONSORTIUM Reproduction forbidden Design, Manufacture, Transport and Integration in Chile of ALMA Antennas Page.
AtacamaLargeMillimeterArray ACS Training Developing Python Components.
AtacamaLargeMillimeterArray ACS Training Notification Channels (last updated by Heiko Sommer, Nov. 2009)
ACS Component Simulator J. Ibsen European Southern Observatory Garching – January 2007ESO.
Simple Functions and Names Sec 9-4 Web Design. Objectives The student will: Know how to create a simple function in Python. Know how to call a function.
Compilation & Linking Computer Organization I 1 November 2009 © McQuain, Feng & Ribbens The Preprocessor When a C compiler is invoked, the.
ESO - Garching 23 June – 02 July, 2003 ACS Course JUnit for Java Unit Testing H. Sommer.
AtacamaLargeMillimeterArray Abeans. Garching, February 2004ACS Training2 What are Abeans? Abeans are Java beans of the IDL interfaces (for the client.
Developing the control system for the 40m OAN radiotelescope with ACS Observatorio Astronómico Nacional P. de VicenteOctober 2005.
ICALEPCS’ GenevaACS in ALMA1 Allen Farris National Radio Astronomy Observatory Lead, ALMA Control System.
ESO - Garching 23 June – 02 July, 2003 ACS Course Transparent XML De-/Serialization in Java H. Sommer.
LBT Q Engineering Review MCSC Mount Control System.
July Doxygen A Code Documentation System Doxygen generates documentation directly from the structure and comments in the code –Browsable HTML documentation.
ICALEPCS 2005 Geneva, Oct. 12 The ALMA Telescope Control SystemA. Farris The ALMA Telescope Control System Allen Farris Ralph Marson Jeff Kern National.
Reproduction interdite © ALMA EUROPEAN CONSORTIUM Reproduction forbidden Design, Manufacture, Transport and Integration in Chile of ALMA Antennas Page.
January 25, 2016 First experiences with CORBA Niko Neufeld.
First Indico Workshop HTTP API Adrian Mönnich May 2013 CERN.
1st ACS Workshop UTFSM, Valparaiso, Chile ACS Course The Big Picture of ACS H. Sommer, G.Chiozzi.
ESO - Garching 08 – 09 March, st ALMA Common Software Workshop ACS Container/Component Model.
Presentation 24 Ultra Simple.NET Remoting to CORBA bridge.
ACS on VxWorks B.Gustafsson European Southern Observatory ESO Feb ESO.
ESO - Garching 08 – 09 March, st ALMA Common Software Workshop XML « Data by Value » Transport.
Functions and Libraries. Reference parameters void setToZero(int var) { var = 0; } int main() { int var = 0; setToZero(var); cout
Return to Home! Go To Next Slide! Return to Home! Go To Next Slide!
Python C API overview References:
T. Meyer ROD Software Workshop July 2002 Scripting and Interpreted Languages Tom Meyer Iowa State University
Towards a Generic Hardware Device Simulation Framework applied to Telescope Control Systems Matias Mora Klein Memoria para optar al título de Ing. Civil.
Web Services General [recap] about web services Project C# Java Python Python web service.
Why the Web?.
Internationalization
Review What is an object? What is a class?
Notification Channel - Java API
Classes Object-oriented programming: Example: Bank transactions
BACI Properties Mount2 example
Using the Python Logging System
Introduction to Python
ACS ALMA Common software Demo Setup
Notification Channel - C++ API
Building a CORBA Server
Classes.
Geography 465 Managing Custom Python Script Tools
Module 3 Selection Structures 4/4/2019 CSE 1321 Module 3.
Access Control Damian Gordon.
Executable program (p1)
Presentation transcript:

AtacamaLargeMillimeterArray ACS Training Using the Python Error System

NRAO, July 2004ACS Training2 Getting Started At the console, type: cvs co ACS/LGPL/CommonSoftware/acscourse This gives you the source code from the slides.

NRAO, July 2004ACS Training3 What’s Available in Python? Everything available in C++ including Completion helper class support, but it’s much simpler to use.

NRAO, July 2004ACS Training4 Example (XML) <Type xmlns:xsi=" xsi:noNamespaceSchemaLocation="ACSError.xsd" name="ACSErrTypeACSCourse" type="9005" _prefix="alma"> <Code name="Pointing" shortDescription="Pointing" description="Pointing in progress"/> <ErrorCode name="TargetNotFound" shortDescription="Target Not Found" description="Target Couldn't be found"/>

NRAO, July 2004ACS Training5 Example (IDL) #ifndef _ACSCOURSE_MOUNT_IDL_ #define _ACSCOURSE_MOUNT_IDL_ #include /* */ #include #pragma prefix "alma" module ACSCOURSE_MOUNT { interface Mount1 : ACS::ACSComponent { /* (Pre)sets a new non-moving position for the antenna. az position azimuth (degree) elev position elevation (degree) */ void objfix (in double az, in double elev) raises (ACSErrTypeACSCourse::TargetNotFoundEx); }; #endif IDL

NRAO, July 2004ACS Training6 Example (Python) import ACSCOURSE_MOUNT__POA #--ACS Imports from Acspy.Servants.ContainerServices import ContainerServices from Acspy.Servants.ComponentLifecycle import ComponentLifecycle from Acspy.Servants.ACSComponent import ACSComponent import ACSErrTypeACSCourseImpl class Mount1(ACSCOURSE_MOUNT__POA.Mount1, #CORBA stubs for IDL interface ACSComponent, #Base IDL interface ContainerServices, #Developer niceties ComponentLifecycle): #HLA stuff '''Simple component impl provided as a reference for developers.''' def __init__(self): ACSComponent.__init__(self) ContainerServices.__init__(self) return Corresponds to Error Type

NRAO, July 2004ACS Training7 Example (Python) # def objfix(self, az, el): '''Python implementation of IDL method.''' if el>90: self.getLogger().logInfo("objfix called with az="+str(az)+ " and el="+str(el)) else: self.getLogger().logCritical("Wrong value for el "+str(el)) raise ACSErrTypeACSCourseImpl.TargetNotFoundExImpl() Corresponds to Error Type Corresponds to ErrorCode

NRAO, July 2004ACS Training8 What methods do exception/completion helper classes generated by the ACS Error System have? As usual, look at the Pydoc!Pydoc

NRAO, July 2004ACS Training9 Questions about the Python Error System?

NRAO, July 2004ACS Training10 Demo