def load_parameters ( self , source ) : with open ( source ) as parameters_source : return json . loads ( parameters_source . read ( ) )
json paramfile in python code
For JSON the source it the file path
def load_parameters(self, source):
        """For JSON, the source it the file path"""
        with open(source) as parameters_source:
            return json.loads(parameters_source.read())