<commit_before>### import to _or_ reference simulations

def initialize_variables(BaseRN,BaseN):

    ############################################################
    # Variables that can be overridden & written into param file
    rf_radius=BaseRN/4.0+0.5
    # force odd aff weights matrix
    if (2*rf_radius)%2==0:
        rf_radius+=0.5

    inh_rad=BaseN/4.0-1.0
    # force odd inh weights matrix
    if (2*inh_rad)%2==0:
        inh_rad+=0.5

    for n,r in zip(['rf_radius','inh_rad'],[rf_radius,inh_rad]):
        assert r>=1.5, "%s = %s; smaller than 1.5 - can't compare simulations"%(n,r)

    exc_rad=max(2.5,BaseN/10.0)
    ############################################################



    ############################################################
    # Variables to match 010910_or_map_512MB.param and or_defs
    area_scale=1.0
    #num_eyes=1

    gammaexc=0.9
    gammainh=0.9

    delta_i=0.1
    beta_i=delta_i+0.55

    randomness = 0.0

    rf_radius_scale=1.0
    xsigma=7.0
    ysigma=1.5
    scale_input=1.0

    retina_edge_buffer=rf_radius-0.5+(randomness*BaseRN*area_scale/2)
    RN=BaseRN*area_scale+2*retina_edge_buffer

    acs=6.5*6.5/rf_radius/rf_radius
    ecs=19.5*19.5/exc_rad/exc_rad
    ics=47.5*47.5/inh_rad/inh_rad
    alpha_input=0.007*acs
    alpha_exc=0.002*ecs
    alpha_inh=0.00025*ics

    tsettle=9
    ############################################################


    return locals()<commit_msg>Added rf_radius_scale to topo_or_defs.<commit_after>### import to _or_ reference simulations

def initialize_variables(BaseRN,BaseN):

    ############################################################
    # Variables that can be overridden & written into param file
    rf_radius=BaseRN/4.0+0.5
    # force odd aff weights matrix
    if (2*rf_radius)%2==0:
        rf_radius+=0.5

    inh_rad=BaseN/4.0-1.0
    # force odd inh weights matrix
    if (2*inh_rad)%2==0:
        inh_rad+=0.5

    for n,r in zip(['rf_radius','inh_rad'],[rf_radius,inh_rad]):
        assert r>=1.5, "%s = %s; smaller than 1.5 - can't compare simulations"%(n,r)

    exc_rad=max(2.5,BaseN/10.0)
    ############################################################

    rf_radius_scale=6.5/rf_radius

    ############################################################
    # Variables to match 010910_or_map_512MB.param and or_defs
    area_scale=1.0
    #num_eyes=1

    gammaexc=0.9
    gammainh=0.9

    delta_i=0.1
    beta_i=delta_i+0.55

    randomness = 0.0

    xsigma=7.0/rf_radius_scale
    ysigma=1.5/rf_radius_scale
    scale_input=1.0

    retina_edge_buffer=rf_radius-0.5+(randomness*BaseRN*area_scale/2)
    RN=BaseRN*area_scale+2*retina_edge_buffer

    acs=6.5*6.5/rf_radius/rf_radius
    ecs=19.5*19.5/exc_rad/exc_rad
    ics=47.5*47.5/inh_rad/inh_rad
    alpha_input=0.007*acs
    alpha_exc=0.002*ecs
    alpha_inh=0.00025*ics

    tsettle=9
    ############################################################


    return locals()
{'fraction_non_alphanumeric': 0.2651821862348178, 'fraction_numerical': 0.06275303643724696, 'mean_word_length': 3.6546310832025117, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3613163', 'n_tokens_mistral': 1200, 'n_tokens_neox': 1080, 'n_words': 160}