Package: eventsim
What’s newin Eventsim 0.6Fixed tkinter issue between python 2 and 3 (importing tk not needed when using the import all syntax on eventsim.simevent)improvements and removed unnecessary codes.in Eventsim 0.5.9Made improvements to trimlist to accept, display and trim more than one argumentin Eventsim 0.5.8Made improvements to trimlistin Eventsim 0.5.7fixed double outcome list generation in the randgen modulefixed errors shown when “r” or “s” is the only argument givenChanged trimlist in the discrete module to approximate to 4 decimal places. (Formerly 3 decimal places)in Eventsim 0.5.6Fixed some bugs, optimised programRenamed models to discreteNow all classes begin with an uppercasediscrete(formerly models) now has its own class for easy manipulationTwo more methods added to discrete (trimval and trimlist) to display number output in a clean way and approximate to 4d.p)Noteplease if you had a previous version of eventsim, it is advisable to uninstall it first in case of errors. Use:pip uninstall eventsimDescriptioneventsim makes discrete event easy to simulateCurrently, it consists of three modules:
discrete, randgen and simeventMODULESDiscreteContains a classCalculatethat takes two lists as arguments and an optional integer value (steps) for simplifying and calculating:probability,estimated variance,estimated mean,estimated standard deviation,expectation value,discreteEmpas well as two other methodstrimvalthat takes in one argument, (numbers or lists and strips it of leading zeros and round up to 4 decimal placesandtrimlistthat takes in as many arguments as possibe and does the same thingtrimvaldoes but very useful if there is a nested list in the list of arguments.They both help to display lists and numbers in a better and easier way to read rather than have values with many leading decimal numbers in a list keeping it concise.Randgencontains  a classGeneratethat takes integer numbers as arguments (from no argument to 5 arguments) with optional arguments being “r” or “s”. r for reverse sorted and s for ascending order sort. It is used to generate:random outcome,a unique outcometimes of occurrence of outcomeprobability of occurrencecummulative probability of occurrenceSimeventcontains classes for generating and estimating events that happens in a workplace scenario. Simulating events like:Interarrival timeService timeArrival timeTime when service beginsTime when service endsWait time in queueTime customer spends in systemIdle time of servertable display format you you want a more structured approachThis module currently contains three classes,Randomsim,Simulate,SimtableRandomsim which generates random values to populate the inter-arrival and service time ad then calculates the rest of the values (accepts 0 - 3 arguments)Simulate, a more flexible class that allows you to input your own inter-arrival time and service time as a list (takes 1-2 arguments [inter-arrival, service] time)Simtable contains one method, drawtable() for generating a tabled format of all the data using tkinter frames.make life easier by importing all classes from simevente.g. from eventsim.simevent import *or risk having to import at least three different modules by youself.Using drawtable is really simple, you only need to pass in the instance of your simulation class as first argument and Tk() as second argument and your table will be generated for youe.g. a = Randomsim(4,6,9)
Simtable(a, Tk()).drawtable()help on using this package is included in the examples.
If you have an old version of eventsim, you are adviced to delete/uninstall the old one if the update isn’t working wellFor more help information please see examples in the package or checkout itsdocumentationathttp://www.pythonhosted.org/eventsim/RequirementsAny version of pythonOne of tkinter ot Tkinter is needed to display generated simulation in a tabular formatDownloadDownload and install using:pip install eventsimAcknowledgementsI was inspired to write this package after my university coursework demanded using python to simulate events. I hope Modelling and Simulation students find it usefulAll glory belongs to God for helping me in completing my first module.ContactIf further information or help is needed, feel free to contact me on my email attaiwo.kareem36@gmail.comThis is still in a test mode please if any errror or bugs is found, feel free to contact the developer and give details