ptypy.utils.parameters#

Parameter definition.

This file is part of the PTYPY package.

copyright:

Copyright 2014 by the PTYPY team, see AUTHORS.

license:

see LICENSE for details.

Functions

asParam(obj)

Convert the input to a Param.

format_standard_param(p)

Pretty-print a Standard Param class.

load(filename)

Helper function to load a parameter file

make_default(default_dict_or_file)

convert description dict to a module dict using a possibly verbose Q & A game

param_from_json(filename)

Convert param tree from JSON file into Param().

param_from_yaml(filename)

Convert param tree from YAML file into Param().

validate_standard_param(sp[, p, prefix])

validate_standard_param(sp) checks if sp follows the standard parameter convention.

Classes

Param([__d__])

Convenience class: a dictionary that gives access to its keys through attributes.