Changeset 125 for trunk/src/python_SD.cc
- Timestamp:
- 12/10/04 14:54:54 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/python_SD.cc
r95 r125 3 3 //#--------------------------------------------------------------------------- 4 4 //# Copyright (C) 2004 5 //# Malte Marquarding,ATNF5 //# ATNF 6 6 //# 7 7 //# This program is free software; you can redistribute it and/or modify it … … 31 31 #include <string> 32 32 #include <vector> 33 33 34 #include <boost/python.hpp> 34 35 #include <boost/python/pyconversions.h> 35 36 #include <boost/python/exception_translator.hpp> 36 #include <casa/Exceptions.h> 37 38 #include <casa/aips.h> 39 #include <casa/Exceptions/Error.h> 37 40 38 41 #include "python_SD.h" … … 40 43 namespace asap { 41 44 namespace python { 42 void translate_ex( AipsError const& e)45 void translate_ex(const casa::AipsError& e) 43 46 { 44 47 // Use the Python 'C' API to set up an exception object … … 57 60 asap::python::python_SDFitter(); 58 61 59 register_exception_translator< AipsError>(&asap::python::translate_ex);62 register_exception_translator<casa::AipsError>(&asap::python::translate_ex); 60 63 61 64 std_vector_to_tuple < int > ();
Note: See TracChangeset
for help on using the changeset viewer.