""" from cfretl.remote_settings import CFRRemoteSettings from cfretl.remote_settings import FEATURES_LIST from cfretl.models import CFRModel import random from datetime import datetime import time random.seed(time.time()) remote_settings = CFRRemoteSettings() version_code = int(datetime.utcnow().strftime("%Y%m%d%H%m%S")) CFRS = remote_settings.debug_load_cfr() CFR_ID_LIST = [r["id"] for r in CFRS] def generate_cfr_cfgdata(version_code): """ This function will need to be rewritten to parse the BQ output table and coerce it into values for RemoteSettings JSON blob """ model = CFRModel() data = [] for idx, cfr_id in enumerate(CFR_ID_LIST): prior_0 = random.random() snip = model.one_cfr(
def MOCK_CFR_DATA(): cfr_remote = CFRRemoteSettings() return cfr_remote.debug_load_cfr()