Coverage for cosmoHammer/util/Params.py : 100%

Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
# Copyright (C) 2015 ETH Zurich, Institute for Astronomy
Created on Aug 5, 2015
author: jakeret '''
""" A key-value parameter store preserving the order of the params passed to the intializer.
Examples::
$ params = Params(("key1", [1,2,3]), ("key2", [1,2,3]))
$ print(params.keys) > ['key1', 'key2']
$ print(params.key1) > [1, 2, 3]
$ params[:,0] = 0
$ print(params.values) > [[0 2 3] [0 2 3]]
$ print(params[:,1]) > [2 2]
"""
def keys(self):
def values(self):
|