RAVE
Lib.rave_pgf_verify Namespace Reference

Functions

 get_args (elem, name)
 Convenience function for accessing arguments from an Element.
 
 verify_generate_args (args, algorithm_entry)
 Verifies arguments passed to a "generate" algorithm.
 

Detailed Description

Copyright (C) 2010- Swedish Meteorological and Hydrological Institute (SMHI)

This file is part of RAVE.

RAVE 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 3 of the License, or
(at your option) any later version.

RAVE 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 RAVE.  If not, see <http://www.gnu.org/licenses/>.

Function Documentation

◆ get_args()

Lib.rave_pgf_verify.get_args ( elem,
name )

Convenience function for accessing arguments from an Element.

Parameters
elemElement containing arguments
namestring containing the type of arguments to access. Must be "strings", "ints", "floats", or "sequences".

◆ verify_generate_args()

Lib.rave_pgf_verify.verify_generate_args ( args,
algorithm_entry )

Verifies arguments passed to a "generate" algorithm.

Parameters
argslist containing an even number of items in pairs, where the first member of each pair is the key and the second is its value.
algorithm_entryElement of a rave_pgf_registry.PGF_Registry object containing the algorithm name and its arguments.
Returns
boolean True or False