Add an STC and LTC button on test creation
This commit is contained in:
1 parent
0d4b3d0b30
commit
b1197bc2f0
4 files changed
+53
-7
No files matched your search
+12
-2
@@ -11,12 +11,22 @@ FRAMEWORK_DEFAULTS = {
|
|||||||
'source' : 'http://github.com/AndyGrant/EtherealDev/',
|
'source' : 'http://github.com/AndyGrant/EtherealDev/',
|
||||||
'homepage' : 'http://github.com/AndyGrant/Ethereal',
|
'homepage' : 'http://github.com/AndyGrant/Ethereal',
|
||||||
|
|
||||||
# Default engine test options
|
# Default to uci since everyone uses it
|
||||||
'protocol' : 'uci',
|
'protocol' : 'uci',
|
||||||
|
|
||||||
|
# Defaults for Short Time Control tests (default on newTest)
|
||||||
|
'stc' : {
|
||||||
'threads' : 1,
|
'threads' : 1,
|
||||||
'hash' : 8,
|
'hash' : 8,
|
||||||
'threads' : 1,
|
|
||||||
'timecontrol' : '10.0+0.1',
|
'timecontrol' : '10.0+0.1',
|
||||||
|
},
|
||||||
|
|
||||||
|
# Defaults for Long Time Control tests (ease of submitting LTC)
|
||||||
|
'ltc' : {
|
||||||
|
'threads' : 1,
|
||||||
|
'hash' : 64,
|
||||||
|
'timecontrol' : '60.0+0.6',
|
||||||
|
},
|
||||||
|
|
||||||
# SPRT bounds and confidence values
|
# SPRT bounds and confidence values
|
||||||
'elolower' : 0.0,
|
'elolower' : 0.0,
|
||||||
|
|||||||
@@ -44,6 +44,24 @@ body {
|
|||||||
-webkit-box-sizing: border-box;
|
-webkit-box-sizing: border-box;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#content button {
|
||||||
|
padding: 8px 0px;
|
||||||
|
margin: 2px 0px;
|
||||||
|
display: inline-block;
|
||||||
|
vertical-align: middle;
|
||||||
|
width: 290px;
|
||||||
|
background-color: #A7D691;
|
||||||
|
color: black;
|
||||||
|
border: none;
|
||||||
|
border-radius: 8px;
|
||||||
|
cursor: pointer;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
#content button:hover {
|
||||||
|
background-color: #6AC63F;
|
||||||
|
}
|
||||||
|
|
||||||
#content input[type=submit] {
|
#content input[type=submit] {
|
||||||
background-color: #15A049;
|
background-color: #15A049;
|
||||||
color: white;
|
color: white;
|
||||||
|
|||||||
@@ -6,6 +6,10 @@
|
|||||||
<head>
|
<head>
|
||||||
<link rel="stylesheet" href="{% static 'style.css' %}">
|
<link rel="stylesheet" href="{% static 'style.css' %}">
|
||||||
<title>OpenBench</title>
|
<title>OpenBench</title>
|
||||||
|
<script>
|
||||||
|
{% block scripts %}
|
||||||
|
{% endblock %}
|
||||||
|
</script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
{% if error %}
|
{% if error %}
|
||||||
|
|||||||
@@ -1,9 +1,22 @@
|
|||||||
{% extends "OpenBench/base.html" %}
|
{% extends "OpenBench/base.html" %}
|
||||||
|
|
||||||
|
{% block scripts %}
|
||||||
|
function setupSTC() {
|
||||||
|
document.getElementById("devoptions").value = "Threads={{config.stc.threads}} Hash={{config.stc.hash}}";
|
||||||
|
document.getElementById("baseoptions").value = "Threads={{config.stc.threads}} Hash={{config.stc.hash}}";
|
||||||
|
document.getElementById("timecontrol").value = "{{config.stc.timecontrol}}"
|
||||||
|
}
|
||||||
|
|
||||||
|
function setupLTC() {
|
||||||
|
document.getElementById("devoptions").value = "Threads={{config.ltc.threads}} Hash={{config.ltc.hash}}";
|
||||||
|
document.getElementById("baseoptions").value = "Threads={{config.ltc.threads}} Hash={{config.ltc.hash}}";
|
||||||
|
document.getElementById("timecontrol").value = "{{config.ltc.timecontrol}}"
|
||||||
|
}
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<form method="POST" action="/newTest/">
|
<form method="POST" action="/newTest/">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
<div>
|
|
||||||
<label> Engine Name </label>
|
<label> Engine Name </label>
|
||||||
<select name="enginename">
|
<select name="enginename">
|
||||||
{% for name, data in config.engines.items %}
|
{% for name, data in config.engines.items %}
|
||||||
@@ -22,7 +35,7 @@
|
|||||||
<input name="devbench">
|
<input name="devbench">
|
||||||
</br>
|
</br>
|
||||||
<label> Dev Options </label>
|
<label> Dev Options </label>
|
||||||
<input value="Threads={{config.threads}} Hash={{config.hash}}" name="devoptions">
|
<input id="devoptions" value="Threads={{config.stc.threads}} Hash={{config.stc.hash}}" name="devoptions">
|
||||||
</br>
|
</br>
|
||||||
<label> Dev Protocol </label>
|
<label> Dev Protocol </label>
|
||||||
<input value="{{config.protocol}}" name="devprotocol">
|
<input value="{{config.protocol}}" name="devprotocol">
|
||||||
@@ -34,7 +47,7 @@
|
|||||||
<input name="basebench">
|
<input name="basebench">
|
||||||
</br>
|
</br>
|
||||||
<label> Base Options </label>
|
<label> Base Options </label>
|
||||||
<input value="Threads={{config.threads}} Hash={{config.hash}}" name="baseoptions">
|
<input id="baseoptions" value="Threads={{config.stc.threads}} Hash={{config.stc.hash}}" name="baseoptions">
|
||||||
</br>
|
</br>
|
||||||
<label> Base Protocol </label>
|
<label> Base Protocol </label>
|
||||||
<input value="{{config.protocol}}" name="baseprotocol">
|
<input value="{{config.protocol}}" name="baseprotocol">
|
||||||
@@ -54,7 +67,7 @@
|
|||||||
</select>
|
</select>
|
||||||
</br>
|
</br>
|
||||||
<label> Time Control </label>
|
<label> Time Control </label>
|
||||||
<input value="{{config.timecontrol}}" name="timecontrol">
|
<input id="timecontrol" value="{{config.stc.timecontrol}}" name="timecontrol">
|
||||||
</br>
|
</br>
|
||||||
<label> Priority </label>
|
<label> Priority </label>
|
||||||
<input value="0" name="priority">
|
<input value="0" name="priority">
|
||||||
@@ -75,6 +88,7 @@
|
|||||||
<input value="{{config.beta}}" name="beta">
|
<input value="{{config.beta}}" name="beta">
|
||||||
</br>
|
</br>
|
||||||
<input type="submit" name="submit" value="Create Engine Test">
|
<input type="submit" name="submit" value="Create Engine Test">
|
||||||
</div>
|
|
||||||
</form>
|
</form>
|
||||||
|
<button onClick="setupSTC()">Setup STC</button>
|
||||||
|
<button onClick="setupLTC()">Setup LTC</button>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
Reference in new issue
Block a user