def get_login_parameters(biobox_type): """ Determines if the biobox type is currently supported for login. Returns a list of parameters for mounting data if it is. """ params = yaml.load(asset.get_asset_file_contents("login_parameters.yml")) if biobox_type not in params: return None else: return params[biobox_type]
def get_login_parameters(biobox_type): """ Determines if the biobox type is currently supported for login. Returns a list of parameters for mounting data if it is. """ params = yaml.load(asset.get_asset_file_contents('login_parameters.yml')) if biobox_type not in params: return None else: return params[biobox_type]
def err_message(msg_key, locals_): errors = yaml.load(asset.get_asset_file_contents('error_messages.yml')) return errors[msg_key].format(**locals_)