Go Back   Smogon Community > eric the espeon
Register FAQ Social Groups Calendar Search Today's Posts Mark Forums Read

Conversation Between eric the espeon and Antar
Showing Visitor Messages 1 to 10 of 11
  1. Antar
    Sep 27th, 2012 5:49:09 PM
    Antar*
    You'd have to make a bat script. Not sure how looping over files works in MS-DOS, but in Linux, it goes something like:

    for i in folder
    do
    python TeamAnalyzer.py folder/$i
    done

    where folder is the name of the folder where all the teams are stored.
  2. eric the espeon
    Sep 27th, 2012 4:47:46 PM
    eric the espeon
    It worked! How would I run it for multiple teams?

    Edit: And got my modification working for higher and lower stats. Need lots of tests to tune the values though.
  3. Antar
    Sep 27th, 2012 11:44:18 AM
    Antar*
    $ is just the symbol that means "interpreter begins here."

    I haven't tried running this on Windows (you might want to try Cygwin?), but *I believe* what you'll want to do is:

    python TeamAnalyzer.py team1

    NOT in the python shell but just from DOS.
  4. eric the espeon
    Sep 27th, 2012 11:23:50 AM
    eric the espeon
    It's giving me a lot of syntax errors, no changes to your code so far (except file = open('baseStats.json') to file = open('C:/Users/Eric/Documents/Eric/Projects/baseStats.json') which made it not give me errors before), and I have TA.py+TeamAnalyzer.py+team1+baseStats.json in the same folder. Sorry if I'm making some really obvious mistake, I'm entirely new to this stuff.
  5. Antar
    Sep 26th, 2012 7:41:50 PM
    Antar*
    For examples of the team analyzer, look at TeamAnalyzer.py or the web folder. For TeamAnalyzer.py, the syntax is: $python TeamAnalyzer.py filename where filename is a file containing a PO/PS plaintext export.
  6. Antar
    Sep 25th, 2012 9:18:34 AM
    Antar*
    I actually did not! Somehow I seem to have unsubscribed from my own thread.
  7. eric the espeon
    Sep 24th, 2012 1:40:45 PM
    eric the espeon
    Did you see my post in the stall vs. offense topic?
  8. eric the espeon
    Dec 27th, 2011 11:40:10 AM
    eric the espeon
    Alright, will do.
  9. Antar
    Dec 27th, 2011 9:53:13 AM
    Antar*
    You should ask Innocent Criminal about that. I'm pretty sure battle logs don't include genders.
  10. eric the espeon
    Dec 27th, 2011 9:33:56 AM
    eric the espeon
    An idea for a statistic which would be interesting, pokemon gender distribution. At its simplest, a flat % male % female for <large metagame>, for a more in depth look perhaps look at different ratings? 1337 against non? I wonder if good players really do mix up their genders more.

All times are GMT -4. The time now is 11:06:32 PM.