oct.results package¶
Submodules¶
oct.results.models module¶
-
class
oct.results.models.Result(*args, **kwargs)[source]¶ Bases:
peewee.ModelDefine a result model
-
DoesNotExist¶ alias of
ResultDoesNotExist
-
custom_timers= <peewee.TextField object>¶
-
elapsed= <peewee.FloatField object>¶
-
epoch= <peewee.FloatField object>¶
-
error= <peewee.TextField object>¶
-
id= <peewee.PrimaryKeyField object>¶
-
scriptrun_time= <peewee.FloatField object>¶
-
turret_name= <peewee.CharField object>¶
-
-
class
oct.results.models.Turret(*args, **kwargs)[source]¶ Bases:
peewee.ModelDefine a turret model
-
DoesNotExist¶ alias of
TurretDoesNotExist
-
cannons= <peewee.IntegerField object>¶
-
id= <peewee.PrimaryKeyField object>¶
-
name= <peewee.TextField object>¶
-
rampup= <peewee.IntegerField object>¶
-
script= <peewee.TextField object>¶
-
status= <peewee.TextField object>¶
-
updated_at= <peewee.DateTimeField object>¶
-
uuid= <peewee.TextField object>¶
-
-
oct.results.models.set_database(db_url, proxy, config)[source]¶ Initialize the peewee database with the given configuration
If the given db_url is a regular file, it will be used as sqlite database
Parameters: - db_url (str) – the connection string for database or path if sqlite file
- proxy (peewee.Proxy) – the peewee proxy to initialise
- config (dict) – the configuration dictionnary
oct.results.report module¶
oct.results.writer module¶
oct.results.ouput module¶
oct.results.stats_handler module¶
oct.results.graphs module¶
-
oct.results.graphs.get_local_time(index)[source]¶ Localize datetime for better output in graphs
Parameters: index (pandas.DateTimeIndex) – pandas datetime index Returns: aware time objet Return type: datetime.time
-
oct.results.graphs.resp_graph(dataframe, image_name, dir='./')[source]¶ Response time graph for bucketed data
Parameters: - dataframe (pandas.DataFrame) – dataframe containing all data
- image_name (str) – the output file name
- dir (str) – the output directory
Returns: None