src/data/__init__.py
def convert_none_to_null(params):
    """Convert None values in params.yaml into null to ensure
    correct reading/writing as None type"""
    if isinstance(params, list):
        params[:] = [convert_none_to_null(elem) for elem in params]
    elif isinstance(params, dict):
        for k, v in params.items():
            params[k] = convert_none_to_null(v)
    return 'null' if params is None else params
Convert None values in params.yaml into null to ensure
    correct reading/writing as None type
Convert None values in params.yaml into null to ensure
correct reading/writing as None type
Convert None values in params . yaml into null to ensure correct reading / writing as None type
def convert_none_to_null(params):
    if isinstance(params, list):
        params[:] = [convert_none_to_null(elem) for elem in params]
    elif isinstance(params, dict):
        for k, v in params.items():
            params[k] = convert_none_to_null(v)
    return 'null' if params is None else params
def convert_none_to_null ( params ) : if isinstance ( params , list ) : params [ : ] = [ convert_none_to_null ( elem ) for elem in params ] elif isinstance ( params , dict ) : for k , v in params . items ( ) : params [ k ] = convert_none_to_null ( v ) return 'null' if params is None else params
Convert None values in params.yaml into null to ensure
correct reading/writing as None type
Convert None values in params . yaml into null to ensure correct reading / writing as None type
"""Convert None values in params.yaml into null to ensure
    correct reading/writing as None type"""
params