Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

StatisticsError: stdev requires at least two data points #13

Open
bhnn opened this issue Feb 7, 2024 · 0 comments
Open

StatisticsError: stdev requires at least two data points #13

bhnn opened this issue Feb 7, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@bhnn
Copy link
Owner

bhnn commented Feb 7, 2024

  • occurs when comparing 2 builds (tested with Ozzy) with -i 1 and one of the builds doesn't make it past the boss
  • enrage_log only has 1 entry and cannot produce a stdev

however:
this printout of res_dict from within make_printable right before avg = {k: statistics.fmean(v) for k, v in res_dict.items() if v and type(v[0]) != list} is executed. It's supposed to be only 1 run, but there's 2 entries in all but 1 key which shouldn't be the case...

final_stage [168, 100]
total_kills [1680, 1000]
revive_log [[166, 167], [100, 100]]
enrage_log [84]
total_attacks [8963, 3333]
total_damage [1813794.1987550885, 382799.906227077]
total_taken [689385.780419951, 46915.07264538]
total_regen [570022.7337962989, 31848.808218712693]
total_attacks_suffered [3398, 842]
total_lifesteal [91212.11970369556, 11700.740950724245]
total_evades [1248, 280]
total_mitigated [427390.14768623776, 28549.434454620005]
total_effect_procs [11495, 1810]
total_loot [122260.964380888, 493.294754659029]
total_stuntime_inflicted [1621.0, 575.0]
total_multistrikes [2475, 772]
total_ms_extra_damage [139486.38073655783, 41687.21226098777]
total_potion [139582.91529354284, 0]
total_trickster_evades [2151, 614]
total_decay_damage [888430.4530881675, 0.0]
total_cripple_extra_damage [251578.92562249352, 0.0]
total_echo [1641, 0]
elapsed_time [23041, 7689]
first_revive [166, 100]
second_revive [167, 100]
lph [19102.446585269598, 230.96125852158988]

Reproduce:
python .\hunter-sim\hunter_sim.py -f .\builds\current_ozzy.yaml -i 1 -c .\builds\medusa_test.yaml
config of build producing the error: medusa_test.txt (rename to .yaml)

@bhnn bhnn added the bug Something isn't working label Feb 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant