/[escript]/trunk/pyvisi/py_src/renderers/gnuplot/common.py
ViewVC logotype

Contents of /trunk/pyvisi/py_src/renderers/gnuplot/common.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 605 - (show annotations)
Mon Mar 20 07:16:27 2006 UTC (13 years, 7 months ago) by gross
File MIME type: text/x-python
File size: 1710 byte(s)
pyvisi with vtk runs noe on the altix
1 # Copyright (C) 2004-2005 Paul Cochrane
2 #
3 # This program is free software; you can redistribute it and/or
4 # modify it under the terms of the GNU General Public License
5 # as published by the Free Software Foundation; either version 2
6 # of the License, or (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
16
17 # $Id: common.py,v 1.16 2005/08/24 05:44:07 paultcochrane Exp $
18
19 ## @file common.py
20
21 """
22 Variables common to all classes and functions
23 """
24
25 from esys.pyvisi.common import _debug
26 _rendererName = "GNUPLOT"
27 _rendererVersion = '0.1'
28 _rendererRevision = 'pre-alpha-4'
29
30 __revision__ = '$Revision: 1.16 $'
31
32 def debugMsg(message):
33 """
34 Convenience function for debugging messages.
35
36 This function will print out a debugging message if the debug variable
37 is set.
38
39 @param message: the message to output if the debug flag is set
40 @type message: string
41 """
42 if _debug:
43 print "\t%s: %s" % (_rendererName, message)
44
45 def unsupportedError():
46 """
47 Print an error message when a method is called that is defined in pyvisi
48 but is not supported at the renderer module level.
49 """
50 errorString = "Sorry, but %s doesn't support this method." % _rendererName
51 raise NotImplementedError, errorString
52
53 # vim: expandtab shiftwidth=4:

  ViewVC Help
Powered by ViewVC 1.1.26