ivoryos 1.2.0b1__py3-none-any.whl → 1.2.2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of ivoryos might be problematic. Click here for more details.

Files changed (82) hide show
  1. ivoryos/__init__.py +22 -1
  2. ivoryos/config.py +1 -0
  3. ivoryos/optimizer/ax_optimizer.py +164 -0
  4. ivoryos/optimizer/base_optimizer.py +65 -0
  5. ivoryos/optimizer/baybe_optimizer.py +183 -0
  6. ivoryos/optimizer/registry.py +9 -0
  7. ivoryos/routes/auth/auth.py +3 -1
  8. ivoryos/routes/data/data.py +2 -0
  9. ivoryos/routes/design/design.py +4 -4
  10. ivoryos/routes/library/library.py +4 -4
  11. ivoryos/utils/script_runner.py +1 -1
  12. ivoryos/utils/serilize.py +4 -6
  13. ivoryos/utils/utils.py +2 -1
  14. ivoryos/version.py +1 -1
  15. {ivoryos-1.2.0b1.dist-info → ivoryos-1.2.2.dist-info}/METADATA +60 -35
  16. ivoryos-1.2.2.dist-info/RECORD +47 -0
  17. {ivoryos-1.2.0b1.dist-info → ivoryos-1.2.2.dist-info}/WHEEL +1 -1
  18. {ivoryos-1.2.0b1.dist-info → ivoryos-1.2.2.dist-info}/top_level.txt +0 -1
  19. ivoryos/routes/auth/templates/login.html +0 -25
  20. ivoryos/routes/auth/templates/signup.html +0 -32
  21. ivoryos/routes/control/templates/controllers.html +0 -166
  22. ivoryos/routes/control/templates/controllers_new.html +0 -112
  23. ivoryos/routes/data/templates/components/step_card.html +0 -13
  24. ivoryos/routes/data/templates/workflow_database.html +0 -109
  25. ivoryos/routes/data/templates/workflow_view.html +0 -130
  26. ivoryos/routes/design/templates/components/action_form.html +0 -53
  27. ivoryos/routes/design/templates/components/actions_panel.html +0 -25
  28. ivoryos/routes/design/templates/components/autofill_toggle.html +0 -10
  29. ivoryos/routes/design/templates/components/canvas.html +0 -5
  30. ivoryos/routes/design/templates/components/canvas_footer.html +0 -9
  31. ivoryos/routes/design/templates/components/canvas_header.html +0 -75
  32. ivoryos/routes/design/templates/components/canvas_main.html +0 -34
  33. ivoryos/routes/design/templates/components/deck_selector.html +0 -10
  34. ivoryos/routes/design/templates/components/edit_action_form.html +0 -38
  35. ivoryos/routes/design/templates/components/instruments_panel.html +0 -66
  36. ivoryos/routes/design/templates/components/modals/drop_modal.html +0 -17
  37. ivoryos/routes/design/templates/components/modals/json_modal.html +0 -22
  38. ivoryos/routes/design/templates/components/modals/new_script_modal.html +0 -17
  39. ivoryos/routes/design/templates/components/modals/rename_modal.html +0 -23
  40. ivoryos/routes/design/templates/components/modals/saveas_modal.html +0 -27
  41. ivoryos/routes/design/templates/components/modals.html +0 -6
  42. ivoryos/routes/design/templates/components/python_code_overlay.html +0 -39
  43. ivoryos/routes/design/templates/components/sidebar.html +0 -15
  44. ivoryos/routes/design/templates/components/text_to_code_panel.html +0 -20
  45. ivoryos/routes/design/templates/experiment_builder.html +0 -41
  46. ivoryos/routes/execute/templates/components/error_modal.html +0 -20
  47. ivoryos/routes/execute/templates/components/logging_panel.html +0 -31
  48. ivoryos/routes/execute/templates/components/progress_panel.html +0 -27
  49. ivoryos/routes/execute/templates/components/run_panel.html +0 -9
  50. ivoryos/routes/execute/templates/components/run_tabs.html +0 -17
  51. ivoryos/routes/execute/templates/components/tab_bayesian.html +0 -399
  52. ivoryos/routes/execute/templates/components/tab_configuration.html +0 -98
  53. ivoryos/routes/execute/templates/components/tab_repeat.html +0 -14
  54. ivoryos/routes/execute/templates/experiment_run.html +0 -294
  55. ivoryos/routes/library/templates/library.html +0 -91
  56. ivoryos/routes/main/templates/help.html +0 -141
  57. ivoryos/routes/main/templates/home.html +0 -103
  58. ivoryos/static/favicon.ico +0 -0
  59. ivoryos/static/gui_annotation/Slide1.png +0 -0
  60. ivoryos/static/gui_annotation/Slide2.PNG +0 -0
  61. ivoryos/static/js/action_handlers.js +0 -213
  62. ivoryos/static/js/db_delete.js +0 -23
  63. ivoryos/static/js/overlay.js +0 -12
  64. ivoryos/static/js/script_metadata.js +0 -39
  65. ivoryos/static/js/socket_handler.js +0 -125
  66. ivoryos/static/js/sortable_card.js +0 -24
  67. ivoryos/static/js/sortable_design.js +0 -138
  68. ivoryos/static/js/ui_state.js +0 -113
  69. ivoryos/static/logo.webp +0 -0
  70. ivoryos/static/style.css +0 -211
  71. ivoryos/templates/base.html +0 -157
  72. ivoryos-1.2.0b1.dist-info/RECORD +0 -105
  73. tests/__init__.py +0 -0
  74. tests/conftest.py +0 -133
  75. tests/integration/__init__.py +0 -0
  76. tests/integration/test_route_auth.py +0 -80
  77. tests/integration/test_route_control.py +0 -94
  78. tests/integration/test_route_database.py +0 -61
  79. tests/integration/test_route_design.py +0 -36
  80. tests/integration/test_route_main.py +0 -35
  81. tests/integration/test_sockets.py +0 -26
  82. {ivoryos-1.2.0b1.dist-info → ivoryos-1.2.2.dist-info/licenses}/LICENSE +0 -0
@@ -1,399 +0,0 @@
1
- {# Bayesian optimization tab component #}
2
-
3
- <div class="tab-pane fade" id="tab3" role="tabpanel" aria-labelledby="tab3-tab">
4
-
5
-
6
- {# <div class="row align-items-center mb-3">#}
7
- {# <div class="col-6">#}
8
- {# <form method="POST" id="loadHistory" name="loadHistory" action="{{ url_for('execute.execute_files.upload_history') }}" enctype="multipart/form-data">#}
9
- {# <div class="input-group">#}
10
- {# <input class="form-control" name="historyfile" id="historyfile" type="file" accept=".csv" onchange="var f=document.getElementById('loadHistory'); if(f) f.submit();"> </div>#}
11
- {# </form>#}
12
- {# </div>#}
13
- {# </div>#}
14
- <h6 class="fw-bold mt-2 mb-1">Load Previous Data</h6>
15
-
16
- <form method="POST" name="bo" action="{{ url_for('execute.run_bo') }}">
17
- <div class="container py-2">
18
- <!-- Optimizer Selection -->
19
- <div class="input-group mb-3">
20
- <label class="input-group-text"><i class="bi bi-gear"></i></label>
21
- <select class="form-select" id="optimizer_type" name="optimizer_type" onchange="updateOptimizerInfo()">
22
- {# <option value="">Select optimizer...</option>#}
23
- {% for optimizer_name, optimizer_info in optimizer_schema.items() %}
24
- <option value="{{ optimizer_name }}"
25
- data-multiobjective="{{ optimizer_info.multiple_objectives }}"
26
- data-parameter-types="{{ optimizer_info.parameter_types|join(',') }}"
27
- data-optimizer-config="{{ optimizer_info.optimizer_config|tojson|e }}">
28
- {{ optimizer_name }} {% if optimizer_info.multiple_objectives %}(Multi-objective supported){% endif %}
29
- </option>
30
- {% endfor %}
31
- </select>
32
- </div>
33
-
34
- <!-- Data Loading Section -->
35
- <div class="input-group mb-3">
36
- <label class="input-group-text"><i class="bi bi-folder2-open"></i></label>
37
- <select class="form-select" id="existing_data" name="existing_data">
38
- <option value="">Load existing data...</option>
39
- {% for data in data_list %}
40
- <option value="{{ data }}">{{ data }} </option>
41
- {% endfor %}
42
- </select>
43
- </div>
44
-
45
- <!-- Data preview section -->
46
- <div class="row mb-3" id="data_preview_section" style="display: none;">
47
- <div class="col-12">
48
- <div class="card">
49
- <div class="card-header py-2">
50
- <small class="fw-bold">Data Preview</small>
51
- </div>
52
- <div class="card-body py-2">
53
- <div id="data_preview_content">
54
- <small class="text-muted">Select a data source to preview</small>
55
- </div>
56
- </div>
57
- </div>
58
- </div>
59
- </div>
60
-
61
- <hr class="my-3">
62
-
63
- <!-- Tabs Navigation -->
64
- <ul class="nav nav-tabs" id="configTabs" role="tablist">
65
- <li class="nav-item" role="presentation">
66
- <button class="nav-link active" id="parameters-tab" data-bs-toggle="tab" data-bs-target="#parameters" type="button" role="tab" aria-controls="parameters" aria-selected="true">
67
- Parameters
68
- </button>
69
- </li>
70
- <li class="nav-item" role="presentation">
71
- <button class="nav-link" id="advanced-tab" data-bs-toggle="tab" data-bs-target="#advanced" type="button" role="tab" aria-controls="advanced" aria-selected="false">
72
- Advanced Settings
73
- </button>
74
- </li>
75
- </ul>
76
-
77
- <!-- Tab Content -->
78
- <div class="tab-content" id="configTabContent">
79
- <!-- Parameters Tab -->
80
- <div class="tab-pane fade show active" id="parameters" role="tabpanel" aria-labelledby="parameters-tab">
81
- <div class="py-3">
82
- <h6 class="fw-bold mt-2 mb-1">Parameters</h6>
83
- <div id="parameters_container">
84
- {% for config in config_list %}
85
- <div class="row align-items-center mb-2 parameter-row">
86
- <div class="col-3 col-form-label-sm">
87
- {{ config }}:
88
- </div>
89
- <div class="col-3">
90
- <select class="form-select form-select-sm parameter-type" id="{{config}}_type" name="{{config}}_type" onchange="updateParameterInputs(this)">
91
- <!-- Options will be populated by JavaScript -->
92
- </select>
93
- </div>
94
- <div class="col-6 parameter-inputs">
95
- <input type="text" class="form-control form-control-sm single-input" id="{{config}}_value" name="{{config}}_value" placeholder="1, 2, 3">
96
- <div class="range-inputs" style="display: none;">
97
- <div class="row">
98
- <div class="col-6">
99
- <input type="text" class="form-control form-control-sm" id="{{config}}_min" name="{{config}}_min" placeholder="Min value">
100
- </div>
101
- <div class="col-6">
102
- <input type="text" class="form-control form-control-sm" id="{{config}}_max" name="{{config}}_max" placeholder="Max value">
103
- </div>
104
- </div>
105
- </div>
106
- </div>
107
- </div>
108
- {% endfor %}
109
- </div>
110
-
111
- <!-- Objectives -->
112
- <h6 class="fw-bold mt-3 mb-1">Objectives</h6>
113
- {% for objective in return_list %}
114
- <div class="row align-items-center mb-2">
115
- <div class="col-3 col-form-label-sm">
116
- {{ objective }}:
117
- </div>
118
- <div class="col-6">
119
- <select class="form-select form-select-sm" id="{{objective}}_min" name="{{objective}}_min">
120
- <option selected>minimize</option>
121
- <option>maximize</option>
122
- <option>none</option>
123
- </select>
124
- </div>
125
- {% if not return_list|length == 1 %}
126
- <div class="col-3">
127
- <input class="form-control" type="number" id="{{objective}}_weight" name="{{objective}}_weight" min="1" max="1000" value="1">
128
- </div>
129
- {% endif %}
130
- </div>
131
- {% endfor %}
132
-
133
- <!-- Budget -->
134
- <h6 class="fw-bold mt-3 mb-1">Budget</h6>
135
- <div class="input-group mb-3">
136
- <label class="input-group-text" for="repeat">Max iteration </label>
137
- <input class="form-control" type="number" id="repeat" name="repeat" min="1" max="1000" value="25">
138
- </div>
139
- </div>
140
- </div>
141
-
142
- <!-- Advanced Settings Tab -->
143
- <div class="tab-pane fade" id="advanced" role="tabpanel" aria-labelledby="advanced-tab">
144
- <div class="py-3">
145
- <h6 class="fw-bold mt-2 mb-1">Optimizer Configuration</h6>
146
- <div id="optimizer_config_container" style="display: none;">
147
-
148
- <!-- Step 1 Configuration -->
149
- <div class="card mb-3">
150
- <div class="card-header py-2">
151
- <small class="fw-bold">Step 1 Configuration</small>
152
- </div>
153
- <div class="card-body py-2">
154
- <div class="row align-items-center mb-2">
155
- <div class="col-3 col-form-label-sm">
156
- Model:
157
- </div>
158
- <div class="col-6">
159
- <select class="form-select form-select-sm" id="step1_model" name="step1_model">
160
- <!-- Options will be populated by JavaScript -->
161
- </select>
162
- </div>
163
- </div>
164
- <div class="row align-items-center mb-2" id="step1_num_samples_row">
165
- <div class="col-3 col-form-label-sm">
166
- Num Samples:
167
- </div>
168
- <div class="col-6">
169
- <input type="number" class="form-control form-control-sm" id="step1_num_samples" name="step1_num_samples" min="1" value="">
170
- </div>
171
- </div>
172
- </div>
173
- </div>
174
-
175
- <!-- Step 2 Configuration -->
176
- <div class="card mb-3">
177
- <div class="card-header py-2">
178
- <small class="fw-bold">Step 2 Configuration</small>
179
- </div>
180
- <div class="card-body py-2">
181
- <div class="row align-items-center mb-2">
182
- <div class="col-3 col-form-label-sm">
183
- Model:
184
- </div>
185
- <div class="col-6">
186
- <select class="form-select form-select-sm" id="step2_model" name="step2_model">
187
- <!-- Options will be populated by JavaScript -->
188
- </select>
189
- </div>
190
- </div>
191
- </div>
192
- </div>
193
- </div>
194
- <div id="optimizer_config_placeholder">
195
- <small class="text-muted">Select an optimizer to configure advanced settings</small>
196
- </div>
197
- </div>
198
- </div>
199
- </div>
200
-
201
- {% if not no_deck_warning%}
202
- <div class="input-group mb-3 mt-3">
203
- <button class="form-control" type="submit" name="bo">Run</button>
204
- </div>
205
- {% endif %}
206
- </div>
207
- </form>
208
- </div>
209
- <script>
210
-
211
- const optimizerSchema = {{ optimizer_schema|tojson }};
212
-
213
- document.addEventListener('DOMContentLoaded', function() {
214
- const dataSelect = document.getElementById('existing_data');
215
- const previewSection = document.getElementById('data_preview_section');
216
- const previewContent = document.getElementById('data_preview_content');
217
-
218
- // Data preview functionality
219
- dataSelect.addEventListener('change', function() {
220
- const filename = dataSelect.value;
221
- if (!filename) {
222
- previewSection.style.display = 'none';
223
- previewContent.innerHTML = '<small class="text-muted">Select a data source to preview</small>';
224
- return;
225
- }
226
- fetch('{{ url_for("execute.data_preview", filename="FILENAME") }}'.replace('FILENAME', encodeURIComponent(filename)))
227
- .then(response => {
228
- if (!response.ok) throw new Error('Network response was not ok');
229
- return response.json();
230
- })
231
- .then(data => {
232
- previewSection.style.display = '';
233
- if (!data.rows || data.rows.length === 0) {
234
- previewContent.innerHTML = '<small class="text-muted">No data found in file.</small>';
235
- return;
236
- }
237
- let html = '<table class="table table-sm table-bordered mb-0"><thead><tr>';
238
- data.columns.forEach(col => html += `<th>${col}</th>`);
239
- html += '</tr></thead><tbody>';
240
- data.rows.forEach(row => {
241
- html += '<tr>';
242
- data.columns.forEach(col => html += `<td>${row[col] || ''}</td>`);
243
- html += '</tr>';
244
- });
245
- html += '</tbody></table>';
246
- previewContent.innerHTML = html;
247
- })
248
- .catch(() => {
249
- previewSection.style.display = '';
250
- previewContent.innerHTML = '<small class="text-danger">Failed to load preview.</small>';
251
- });
252
- });
253
- });
254
-
255
- function updateOptimizerInfo() {
256
- const optimizerSelect = document.getElementById('optimizer_type');
257
- const selectedOption = optimizerSelect.selectedOptions[0];
258
-
259
- if (!selectedOption || !selectedOption.value) {
260
- // Hide optimizer config and reset parameter types
261
- document.getElementById('optimizer_config_container').style.display = 'none';
262
- document.getElementById('optimizer_config_placeholder').style.display = 'block';
263
- resetParameterTypes();
264
- return;
265
- }
266
-
267
- // Update parameter types
268
- const parameterTypes = selectedOption.dataset.parameterTypes.split(',');
269
- updateParameterTypeOptions(parameterTypes);
270
-
271
- // Update optimizer config - use the stored schema data instead
272
- const optimizerName = selectedOption.value;
273
- if (optimizerSchema[optimizerName] && optimizerSchema[optimizerName].optimizer_config) {
274
- updateOptimizerConfig(optimizerSchema[optimizerName].optimizer_config);
275
- } else {
276
- document.getElementById('optimizer_config_container').style.display = 'none';
277
- document.getElementById('optimizer_config_placeholder').style.display = 'block';
278
- }
279
- }
280
-
281
- function updateParameterTypeOptions(availableTypes) {
282
- const parameterTypeSelects = document.querySelectorAll('.parameter-type');
283
-
284
- parameterTypeSelects.forEach(select => {
285
- // Clear existing options
286
- select.innerHTML = '';
287
-
288
- // Add available options based on optimizer
289
- availableTypes.forEach(type => {
290
- const option = document.createElement('option');
291
- option.value = type;
292
- option.textContent = type;
293
- if (type === 'range') {
294
- option.selected = true;
295
- }
296
- select.appendChild(option);
297
- });
298
-
299
- // Update inputs for the current selection
300
- updateParameterInputs(select);
301
- });
302
- }
303
-
304
- function resetParameterTypes() {
305
- const parameterTypeSelects = document.querySelectorAll('.parameter-type');
306
-
307
- parameterTypeSelects.forEach(select => {
308
- select.innerHTML = '';
309
- const defaultTypes = ['range', 'choice', 'fixed'];
310
- defaultTypes.forEach(type => {
311
- const option = document.createElement('option');
312
- option.value = type;
313
- option.textContent = type;
314
- if (type === 'range') {
315
- option.selected = true;
316
- }
317
- select.appendChild(option);
318
- });
319
-
320
- updateParameterInputs(select);
321
- });
322
- }
323
-
324
- function updateParameterInputs(selectElement) {
325
- const parameterRow = selectElement.closest('.parameter-row');
326
- const singleInput = parameterRow.querySelector('.single-input');
327
- const rangeInputs = parameterRow.querySelector('.range-inputs');
328
-
329
- if (selectElement.value === 'range') {
330
- singleInput.style.display = 'none';
331
- rangeInputs.style.display = 'block';
332
- } else {
333
- singleInput.style.display = 'block';
334
- rangeInputs.style.display = 'none';
335
- }
336
- }
337
-
338
- function updateOptimizerConfig(config) {
339
- const container = document.getElementById('optimizer_config_container');
340
- const placeholder = document.getElementById('optimizer_config_placeholder');
341
-
342
- console.log('Updating optimizer config:', config); // Debug log
343
-
344
- if (!config || !config.step_1) {
345
- container.style.display = 'none';
346
- placeholder.style.display = 'block';
347
- return;
348
- }
349
-
350
- placeholder.style.display = 'none';
351
- container.style.display = 'block';
352
-
353
- // Update Step 1
354
- const step1ModelSelect = document.getElementById('step1_model');
355
- if (step1ModelSelect && config.step_1.model) {
356
- step1ModelSelect.innerHTML = '';
357
- config.step_1.model.forEach(model => {
358
- const option = document.createElement('option');
359
- option.value = model;
360
- option.textContent = model;
361
- step1ModelSelect.appendChild(option);
362
- });
363
- }
364
-
365
- // Update Step 1 num_samples if exists
366
- const step1NumSamplesRow = document.getElementById('step1_num_samples_row');
367
- const step1NumSamplesInput = document.getElementById('step1_num_samples');
368
- if (step1NumSamplesRow && step1NumSamplesInput) {
369
- if (config.step_1.num_samples !== undefined) {
370
- step1NumSamplesRow.style.display = '';
371
- step1NumSamplesInput.value = config.step_1.num_samples;
372
- } else {
373
- step1NumSamplesRow.style.display = 'none';
374
- }
375
- }
376
-
377
- // Update Step 2
378
- if (config.step_2) {
379
- const step2ModelSelect = document.getElementById('step2_model');
380
- if (step2ModelSelect && config.step_2.model) {
381
- step2ModelSelect.innerHTML = '';
382
- config.step_2.model.forEach(model => {
383
- const option = document.createElement('option');
384
- option.value = model;
385
- option.textContent = model;
386
- step2ModelSelect.appendChild(option);
387
- });
388
- }
389
- }
390
- }
391
-
392
- // Initialize parameter inputs on page load
393
- document.addEventListener('DOMContentLoaded', function() {
394
- const parameterTypeSelects = document.querySelectorAll('.parameter-type');
395
- parameterTypeSelects.forEach(select => {
396
- updateParameterInputs(select);
397
- });
398
- });
399
- </script>
@@ -1,98 +0,0 @@
1
- {# Configuration tab component #}
2
- <div class="tab-pane fade {{ 'show active' if config_list else '' }}" id="tab2" role="tabpanel" aria-labelledby="tab2-tab">
3
- <!-- File Management Section -->
4
- <div class="card mb-4">
5
- <div class="card-header d-flex justify-content-between align-items-center">
6
- <h6 class="mb-0"><i class="bi bi-file-earmark-text"></i> Configuration File</h6>
7
- <small class="text-muted">
8
- <a href="{{ url_for('execute.execute_files.download_empty_config', filetype='configure') }}">
9
- <i class="bi bi-download"></i> Download Empty Template
10
- </a>
11
- </small>
12
- </div>
13
- <div class="card-body">
14
- <div class="row g-3">
15
- <!-- File Selection -->
16
- <div class="col-md-6">
17
- <form name="filenameForm" id="filenameForm" method="GET" action="{{ url_for('execute.experiment_run') }}" enctype="multipart/form-data">
18
- <div class="input-group">
19
- <label class="input-group-text"><i class="bi bi-folder2-open"></i></label>
20
- <select class="form-select" name="filename" id="filenameSelect" onchange="document.getElementById('filenameForm').submit();">
21
- <option {{ 'selected' if not filename else '' }} value="">-- Select existing file --</option>
22
- {% for config_file in config_file_list %}
23
- <option {{ 'selected' if filename == config_file else '' }} value="{{ config_file }}">{{ config_file }}</option>
24
- {% endfor %}
25
- </select>
26
- </div>
27
- </form>
28
- </div>
29
-
30
- <!-- File Upload -->
31
- <div class="col-md-6">
32
- <form method="POST" id="loadFile" name="loadFile" action="{{ url_for('execute.execute_files.upload') }}" enctype="multipart/form-data">
33
- <div class="input-group">
34
- <input class="form-control" name="file" type="file" accept=".csv" required="required" onchange="document.getElementById('loadFile').submit();">
35
- </div>
36
- </form>
37
- </div>
38
- </div>
39
- </div>
40
- </div>
41
-
42
- <!-- Configuration Table -->
43
- <div class="card mb-4">
44
- <div class="card-header position-relative">
45
- <div class="position-absolute top-50 end-0 translate-middle-y me-3">
46
- <span id="saveStatus" class="badge bg-success" style="display: none;">
47
- <i class="bi bi-check-circle"></i> Auto-saved
48
- </span>
49
- <span id="modifiedStatus" class="badge bg-warning" style="display: none;">
50
- <i class="bi bi-pencil"></i> Modified
51
- </span>
52
- </div>
53
- </div>
54
- <div class="card-body p-0">
55
- <form method="POST" name="online-config" id="online-config" action="{{url_for('execute.experiment_run')}}">
56
- <div class="table-responsive">
57
- <table id="dataInputTable" class="table table-striped table-hover mb-0">
58
- <thead class="table-dark">
59
- <tr>
60
- <th style="width: 40px;">#</th>
61
- {% for column in config_list %}
62
- <th>{{ column }}</th>
63
- {% endfor %}
64
- <th></th>
65
- </tr>
66
- </thead>
67
- <tbody id="tableBody">
68
- </tbody>
69
- </table>
70
- </div>
71
- <div class="card-footer">
72
- <div class="d-flex justify-content-between align-items-center">
73
- <div class="d-flex gap-2">
74
- <button type="button" class="btn btn-success" onclick="addRow()">
75
- <i class="bi bi-plus-circle"></i> Add Row
76
- </button>
77
- <button type="button" class="btn btn-warning" onclick="clearAllRows()">
78
- <i class="bi bi-trash"></i> Clear All
79
- </button>
80
- <button type="button" class="btn btn-info" onclick="resetToFile()" id="resetToFileBtn" style="display: none;">
81
- <i class="bi bi-arrow-clockwise"></i> Reset to File
82
- </button>
83
- </div>
84
- <button type="submit" name="online-config" class="btn btn-primary btn-lg">
85
- <i class="bi bi-play-circle"></i> Run
86
- </button>
87
- </div>
88
- </div>
89
- </form>
90
- </div>
91
- <!-- Config Preview (if loaded from file) -->
92
- {% if config_preview %}
93
- <div class="alert alert-info">
94
- <small><i class="bi bi-info-circle"></i> {{ config_preview|length }} rows loaded from {{ filename }}</small>
95
- </div>
96
- {% endif %}
97
- </div>
98
- </div>
@@ -1,14 +0,0 @@
1
- {# Repeat tab component #}
2
- <div class="tab-pane fade {{ 'show active' if not config_list else '' }}" id="tab1" role="tabpanel" aria-labelledby="tab1-tab">
3
- <p><h5>Control panel:</h5></p>
4
- <form role="form" method='POST' name="run" action="{{url_for('execute.experiment_run')}}">
5
- <div class="input-group mb-3">
6
- <label class="input-group-text" for="repeat">Repeat for </label>
7
- <input class="form-control" type="number" id="repeat" name="repeat" min="1" max="1000" value="1">
8
- <label class="input-group-text" for="repeat"> times</label>
9
- </div>
10
- <div class="input-group mb-3">
11
- <button class="form-control" type="submit" class="btn btn-dark">Run</button>
12
- </div>
13
- </form>
14
- </div>