#! /usr/bin/env python
# ALMA - Atacama Large Millimeter Array
# (c) European Southern Observatory, 2002
# (c) Associated Universities Inc., 2002
# Copyright by ESO (in the framework of the ALMA collaboration),
# Copyright by AUI (in the framework of the ALMA collaboration),
# All rights reserved.
# 
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
# 
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY, without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# Lesser General Public License for more details.
# 
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
# MA 02111-1307  USA
# 
# /////////////////////////////////////////////////////////////////
# // WARNING!  DO NOT MODIFY THIS FILE!                          //
# //  =========================================================  //
# // | This is generated code!  Do not modify this file.       | //
# // | Any changes will be lost when the file is re-generated. | //
# //  =========================================================  //
# /////////////////////////////////////////////////////////////////
#
# File __init__.py
#


from AxisNameMod import *
from ACSErrTypeCommon import BadParameterEx

def fromString(stringVersionOfEnumeration):
	try:
		return {
			'TIM': TIM,
			'BAL': BAL,
			'ANT': ANT,
			'BAB': BAB,
			'SPW': SPW,
			'SIB': SIB,
			'SUB': SUB,
			'BIN': BIN,
			'APC': APC,
			'SPP': SPP,
			'POL': POL,
			'STO': STO,
			'HOL': HOL,
		}[stringVersionOfEnumeration]
	except KeyError:
		raise BadParameterEx('stringVersionOfEnumeration')
		
def AxisNameSet():
	return [
		'AxisName',
		'AxisName',
		'AxisName',
		'AxisName',
		'AxisName',
		'AxisName',
		'AxisName',
		'AxisName',
		'AxisName',
		'AxisName',
		'AxisName',
		'AxisName',
		'AxisName',
 	]
"""
Although this method could be simpler, the strings are listed explicity
to ensure consistency between this and other language mappings.
"""
def toString(valueVersionOfEnumeration):
	return {
		TIM: 'TIM',
		BAL: 'BAL',
		ANT: 'ANT',
		BAB: 'BAB',
		SPW: 'SPW',
		SIB: 'SIB',
		SUB: 'SUB',
		BIN: 'BIN',
		APC: 'APC',
		SPP: 'SPP',
		POL: 'POL',
		STO: 'STO',
		HOL: 'HOL',
 	}[valueVersionOfEnumeration]

def hasHelp():
	return True
	
def help(valueVersionOfEnumeration):
	return {
		TIM: """!< Time axis. """,
		BAL: """!< Baseline axis. """,
		ANT: """!< Antenna axis. """,
		BAB: """!< Baseband axis. """,
		SPW: """!< Spectral window  axis. """,
		SIB: """!< Sideband axis. """,
		SUB: """!< Subband axis. """,
		BIN: """!< Bin axis. """,
		APC: """!< Atmosphere phase correction axis. """,
		SPP: """!< Spectral point axis. """,
		POL: """!< Polarization axis (Stokes parameters). """,
		STO: """!< Stokes parameter axis. """,
		HOL: """!< Holography axis. """,
	}

def hasAssociatedNumber():
 	return False
 	
def newAxisName(p):
     if type(p) is str:
         return fromString(p)
     return None

335d595238cb76442006c8261d1ce4d68929cf0d
<mask token>


def fromString(stringVersionOfEnumeration):
    try:
        return {'TIM': TIM, 'BAL': BAL, 'ANT': ANT, 'BAB': BAB, 'SPW': SPW,
            'SIB': SIB, 'SUB': SUB, 'BIN': BIN, 'APC': APC, 'SPP': SPP,
            'POL': POL, 'STO': STO, 'HOL': HOL}[stringVersionOfEnumeration]
    except KeyError:
        raise BadParameterEx('stringVersionOfEnumeration')


def AxisNameSet():
    return ['AxisName', 'AxisName', 'AxisName', 'AxisName', 'AxisName',
        'AxisName', 'AxisName', 'AxisName', 'AxisName', 'AxisName',
        'AxisName', 'AxisName', 'AxisName']


<mask token>


def hasHelp():
    return True


def help(valueVersionOfEnumeration):
    return {TIM: '!< Time axis. ', BAL: '!< Baseline axis. ', ANT:
        '!< Antenna axis. ', BAB: '!< Baseband axis. ', SPW:
        '!< Spectral window  axis. ', SIB: '!< Sideband axis. ', SUB:
        '!< Subband axis. ', BIN: '!< Bin axis. ', APC:
        '!< Atmosphere phase correction axis. ', SPP:
        '!< Spectral point axis. ', POL:
        '!< Polarization axis (Stokes parameters). ', STO:
        '!< Stokes parameter axis. ', HOL: '!< Holography axis. '}


def hasAssociatedNumber():
    return False


<mask token>

<mask token>


def fromString(stringVersionOfEnumeration):
    try:
        return {'TIM': TIM, 'BAL': BAL, 'ANT': ANT, 'BAB': BAB, 'SPW': SPW,
            'SIB': SIB, 'SUB': SUB, 'BIN': BIN, 'APC': APC, 'SPP': SPP,
            'POL': POL, 'STO': STO, 'HOL': HOL}[stringVersionOfEnumeration]
    except KeyError:
        raise BadParameterEx('stringVersionOfEnumeration')


def AxisNameSet():
    return ['AxisName', 'AxisName', 'AxisName', 'AxisName', 'AxisName',
        'AxisName', 'AxisName', 'AxisName', 'AxisName', 'AxisName',
        'AxisName', 'AxisName', 'AxisName']


<mask token>


def hasHelp():
    return True


def help(valueVersionOfEnumeration):
    return {TIM: '!< Time axis. ', BAL: '!< Baseline axis. ', ANT:
        '!< Antenna axis. ', BAB: '!< Baseband axis. ', SPW:
        '!< Spectral window  axis. ', SIB: '!< Sideband axis. ', SUB:
        '!< Subband axis. ', BIN: '!< Bin axis. ', APC:
        '!< Atmosphere phase correction axis. ', SPP:
        '!< Spectral point axis. ', POL:
        '!< Polarization axis (Stokes parameters). ', STO:
        '!< Stokes parameter axis. ', HOL: '!< Holography axis. '}


def hasAssociatedNumber():
    return False


def newAxisName(p):
    if type(p) is str:
        return fromString(p)
    return None

<mask token>


def fromString(stringVersionOfEnumeration):
    try:
        return {'TIM': TIM, 'BAL': BAL, 'ANT': ANT, 'BAB': BAB, 'SPW': SPW,
            'SIB': SIB, 'SUB': SUB, 'BIN': BIN, 'APC': APC, 'SPP': SPP,
            'POL': POL, 'STO': STO, 'HOL': HOL}[stringVersionOfEnumeration]
    except KeyError:
        raise BadParameterEx('stringVersionOfEnumeration')


def AxisNameSet():
    return ['AxisName', 'AxisName', 'AxisName', 'AxisName', 'AxisName',
        'AxisName', 'AxisName', 'AxisName', 'AxisName', 'AxisName',
        'AxisName', 'AxisName', 'AxisName']


<mask token>


def toString(valueVersionOfEnumeration):
    return {TIM: 'TIM', BAL: 'BAL', ANT: 'ANT', BAB: 'BAB', SPW: 'SPW', SIB:
        'SIB', SUB: 'SUB', BIN: 'BIN', APC: 'APC', SPP: 'SPP', POL: 'POL',
        STO: 'STO', HOL: 'HOL'}[valueVersionOfEnumeration]


def hasHelp():
    return True


def help(valueVersionOfEnumeration):
    return {TIM: '!< Time axis. ', BAL: '!< Baseline axis. ', ANT:
        '!< Antenna axis. ', BAB: '!< Baseband axis. ', SPW:
        '!< Spectral window  axis. ', SIB: '!< Sideband axis. ', SUB:
        '!< Subband axis. ', BIN: '!< Bin axis. ', APC:
        '!< Atmosphere phase correction axis. ', SPP:
        '!< Spectral point axis. ', POL:
        '!< Polarization axis (Stokes parameters). ', STO:
        '!< Stokes parameter axis. ', HOL: '!< Holography axis. '}


def hasAssociatedNumber():
    return False


def newAxisName(p):
    if type(p) is str:
        return fromString(p)
    return None

from AxisNameMod import *
from ACSErrTypeCommon import BadParameterEx


def fromString(stringVersionOfEnumeration):
    try:
        return {'TIM': TIM, 'BAL': BAL, 'ANT': ANT, 'BAB': BAB, 'SPW': SPW,
            'SIB': SIB, 'SUB': SUB, 'BIN': BIN, 'APC': APC, 'SPP': SPP,
            'POL': POL, 'STO': STO, 'HOL': HOL}[stringVersionOfEnumeration]
    except KeyError:
        raise BadParameterEx('stringVersionOfEnumeration')


def AxisNameSet():
    return ['AxisName', 'AxisName', 'AxisName', 'AxisName', 'AxisName',
        'AxisName', 'AxisName', 'AxisName', 'AxisName', 'AxisName',
        'AxisName', 'AxisName', 'AxisName']


<mask token>


def toString(valueVersionOfEnumeration):
    return {TIM: 'TIM', BAL: 'BAL', ANT: 'ANT', BAB: 'BAB', SPW: 'SPW', SIB:
        'SIB', SUB: 'SUB', BIN: 'BIN', APC: 'APC', SPP: 'SPP', POL: 'POL',
        STO: 'STO', HOL: 'HOL'}[valueVersionOfEnumeration]


def hasHelp():
    return True


def help(valueVersionOfEnumeration):
    return {TIM: '!< Time axis. ', BAL: '!< Baseline axis. ', ANT:
        '!< Antenna axis. ', BAB: '!< Baseband axis. ', SPW:
        '!< Spectral window  axis. ', SIB: '!< Sideband axis. ', SUB:
        '!< Subband axis. ', BIN: '!< Bin axis. ', APC:
        '!< Atmosphere phase correction axis. ', SPP:
        '!< Spectral point axis. ', POL:
        '!< Polarization axis (Stokes parameters). ', STO:
        '!< Stokes parameter axis. ', HOL: '!< Holography axis. '}


def hasAssociatedNumber():
    return False


def newAxisName(p):
    if type(p) is str:
        return fromString(p)
    return None

#! /usr/bin/env python
# ALMA - Atacama Large Millimeter Array
# (c) European Southern Observatory, 2002
# (c) Associated Universities Inc., 2002
# Copyright by ESO (in the framework of the ALMA collaboration),
# Copyright by AUI (in the framework of the ALMA collaboration),
# All rights reserved.
# 
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
# 
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY, without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# Lesser General Public License for more details.
# 
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
# MA 02111-1307  USA
# 
# /////////////////////////////////////////////////////////////////
# // WARNING!  DO NOT MODIFY THIS FILE!                          //
# //  =========================================================  //
# // | This is generated code!  Do not modify this file.       | //
# // | Any changes will be lost when the file is re-generated. | //
# //  =========================================================  //
# /////////////////////////////////////////////////////////////////
#
# File __init__.py
#


from AxisNameMod import *
from ACSErrTypeCommon import BadParameterEx

def fromString(stringVersionOfEnumeration):
	try:
		return {
			'TIM': TIM,
			'BAL': BAL,
			'ANT': ANT,
			'BAB': BAB,
			'SPW': SPW,
			'SIB': SIB,
			'SUB': SUB,
			'BIN': BIN,
			'APC': APC,
			'SPP': SPP,
			'POL': POL,
			'STO': STO,
			'HOL': HOL,
		}[stringVersionOfEnumeration]
	except KeyError:
		raise BadParameterEx('stringVersionOfEnumeration')
		
def AxisNameSet():
	return [
		'AxisName',
		'AxisName',
		'AxisName',
		'AxisName',
		'AxisName',
		'AxisName',
		'AxisName',
		'AxisName',
		'AxisName',
		'AxisName',
		'AxisName',
		'AxisName',
		'AxisName',
 	]
"""
Although this method could be simpler, the strings are listed explicity
to ensure consistency between this and other language mappings.
"""
def toString(valueVersionOfEnumeration):
	return {
		TIM: 'TIM',
		BAL: 'BAL',
		ANT: 'ANT',
		BAB: 'BAB',
		SPW: 'SPW',
		SIB: 'SIB',
		SUB: 'SUB',
		BIN: 'BIN',
		APC: 'APC',
		SPP: 'SPP',
		POL: 'POL',
		STO: 'STO',
		HOL: 'HOL',
 	}[valueVersionOfEnumeration]

def hasHelp():
	return True
	
def help(valueVersionOfEnumeration):
	return {
		TIM: """!< Time axis. """,
		BAL: """!< Baseline axis. """,
		ANT: """!< Antenna axis. """,
		BAB: """!< Baseband axis. """,
		SPW: """!< Spectral window  axis. """,
		SIB: """!< Sideband axis. """,
		SUB: """!< Subband axis. """,
		BIN: """!< Bin axis. """,
		APC: """!< Atmosphere phase correction axis. """,
		SPP: """!< Spectral point axis. """,
		POL: """!< Polarization axis (Stokes parameters). """,
		STO: """!< Stokes parameter axis. """,
		HOL: """!< Holography axis. """,
	}

def hasAssociatedNumber():
 	return False
 	
def newAxisName(p):
     if type(p) is str:
         return fromString(p)
     return None
