<commit_before>__author__ = 'richard'

import agent

N_TRAJECTORIES = 100
TEST_CONDITION = None  # {'Left', 'Right', None}
# old beta- 5e-5, forces 4.12405e-6, fwind = 5e-7
# BETA, RANDF_STRENGTH = [  3.63674551e-07,   6.55599224e-06]  # 10/28
BETA, RANDF_STRENGTH = [3.63674551e-07, 6.55599224e-06]
F_WIND_SCALE = 0.
# BETA, RANDF_STRENGTH, F_WIND_SCALE = [1.37213380e-06, 1.39026239e-06, 7.06854777e-07]#
F_STIM_SCALE = 0.  # 7e-7,   # set to zero to disable tracking hot air
K = 0.  # 1e-7               # set to zero to disable wall attraction
BOUNDED = False

simulation, skeeter = agent.gen_objects_and_fly(
    N_TRAJECTORIES,
    TEST_CONDITION,
    BETA,
    RANDF_STRENGTH,
    F_WIND_SCALE,
    F_STIM_SCALE,
    K,
    bounded=BOUNDED
)

print "\nDone."

######################### plotting methods
# simulation.plot_3Dtrajectory(0)  # plot ith trajectory in the ensemble of trajectories

# print pd.isnull(simulation.data).any().nonzero()[0]
# print

# simulation.plot_kinematic_hists()
# simulation.plot_position_heatmaps()
# simulation.plot_force_violin()  # TODO: fix Nans in arrays<commit_msg>added collison types and bounding as params<commit_after>__author__ = 'richard'

import agent

N_TRAJECTORIES = 100
TEST_CONDITION = None  # {'Left', 'Right', None}
# old beta- 5e-5, forces 4.12405e-6, fwind = 5e-7
# BETA, RANDF_STRENGTH = [  3.63674551e-07,   6.55599224e-06]  # 10/28
BETA, RANDF_STRENGTH = [3.63674551e-07, 6.55599224e-06]
F_WIND_SCALE = 0.
# BETA, RANDF_STRENGTH, F_WIND_SCALE = [1.37213380e-06, 1.39026239e-06, 7.06854777e-07]#
F_STIM_SCALE = 0.  # 7e-7,   # set to zero to disable tracking hot air
K = 0.  # 1e-7               # set to zero to disable wall attraction
BOUNDED = True
INITIAL_POS = 'downwind_high'
COLLISION_TYPE = 'crash'

simulation, skeeter = agent.gen_objects_and_fly(
    N_TRAJECTORIES,
    TEST_CONDITION,
    BETA,
    RANDF_STRENGTH,
    F_WIND_SCALE,
    F_STIM_SCALE,
    K,
    INITIAL_POS,
    bounded=BOUNDED,
    collision_type=COLLISION_TYPE
)

print "\nDone."

######################### plotting methods
# simulation.plot_3Dtrajectory(0)  # plot ith trajectory in the ensemble of trajectories

# print pd.isnull(simulation.data).any().nonzero()[0]
# print

# simulation.plot_kinematic_hists()
# simulation.plot_position_heatmaps()
# simulation.plot_force_violin()  # TODO: fix Nans in arrays
{'fraction_non_alphanumeric': 0.13211554800339848, 'fraction_numerical': 0.08920985556499575, 'mean_word_length': 4.0, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '5241129', 'n_tokens_mistral': 1098, 'n_tokens_neox': 946, 'n_words': 197}