ivoryos 1.0.9__py3-none-any.whl → 1.2.0b1__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 (87) hide show
  1. ivoryos/__init__.py +26 -7
  2. ivoryos/routes/api/api.py +56 -0
  3. ivoryos/routes/auth/auth.py +5 -5
  4. ivoryos/routes/control/control.py +77 -372
  5. ivoryos/routes/control/control_file.py +36 -0
  6. ivoryos/routes/control/control_new_device.py +142 -0
  7. ivoryos/routes/control/templates/controllers.html +166 -0
  8. ivoryos/routes/control/templates/controllers_new.html +112 -0
  9. ivoryos/routes/control/utils.py +38 -0
  10. ivoryos/routes/data/data.py +129 -0
  11. ivoryos/routes/data/templates/components/step_card.html +13 -0
  12. ivoryos/routes/{database/templates/database → data/templates}/workflow_database.html +14 -8
  13. ivoryos/routes/{database/templates/database → data/templates}/workflow_view.html +3 -3
  14. ivoryos/routes/design/__init__.py +4 -0
  15. ivoryos/routes/design/design.py +298 -656
  16. ivoryos/routes/design/design_file.py +68 -0
  17. ivoryos/routes/design/design_step.py +145 -0
  18. ivoryos/routes/design/templates/components/action_form.html +53 -0
  19. ivoryos/routes/design/templates/components/actions_panel.html +25 -0
  20. ivoryos/routes/design/templates/components/autofill_toggle.html +10 -0
  21. ivoryos/routes/design/templates/components/canvas.html +5 -0
  22. ivoryos/routes/design/templates/components/canvas_footer.html +9 -0
  23. ivoryos/routes/design/templates/components/canvas_header.html +75 -0
  24. ivoryos/routes/design/templates/components/canvas_main.html +34 -0
  25. ivoryos/routes/design/templates/components/deck_selector.html +10 -0
  26. ivoryos/routes/design/templates/components/edit_action_form.html +38 -0
  27. ivoryos/routes/design/templates/components/instruments_panel.html +66 -0
  28. ivoryos/routes/design/templates/components/modals/drop_modal.html +17 -0
  29. ivoryos/routes/design/templates/components/modals/json_modal.html +22 -0
  30. ivoryos/routes/design/templates/components/modals/new_script_modal.html +17 -0
  31. ivoryos/routes/design/templates/components/modals/rename_modal.html +23 -0
  32. ivoryos/routes/design/templates/components/modals/saveas_modal.html +27 -0
  33. ivoryos/routes/design/templates/components/modals.html +6 -0
  34. ivoryos/routes/design/templates/components/python_code_overlay.html +39 -0
  35. ivoryos/routes/design/templates/components/sidebar.html +15 -0
  36. ivoryos/routes/design/templates/components/text_to_code_panel.html +20 -0
  37. ivoryos/routes/design/templates/experiment_builder.html +41 -0
  38. ivoryos/routes/execute/__init__.py +0 -0
  39. ivoryos/routes/execute/execute.py +317 -0
  40. ivoryos/routes/execute/execute_file.py +78 -0
  41. ivoryos/routes/execute/templates/components/error_modal.html +20 -0
  42. ivoryos/routes/execute/templates/components/logging_panel.html +31 -0
  43. ivoryos/routes/execute/templates/components/progress_panel.html +27 -0
  44. ivoryos/routes/execute/templates/components/run_panel.html +9 -0
  45. ivoryos/routes/execute/templates/components/run_tabs.html +17 -0
  46. ivoryos/routes/execute/templates/components/tab_bayesian.html +399 -0
  47. ivoryos/routes/execute/templates/components/tab_configuration.html +98 -0
  48. ivoryos/routes/execute/templates/components/tab_repeat.html +14 -0
  49. ivoryos/routes/execute/templates/experiment_run.html +294 -0
  50. ivoryos/routes/library/__init__.py +0 -0
  51. ivoryos/routes/library/library.py +159 -0
  52. ivoryos/routes/{database/templates/database/scripts_database.html → library/templates/library.html} +30 -22
  53. ivoryos/routes/main/main.py +1 -1
  54. ivoryos/routes/main/templates/{main/home.html → home.html} +4 -4
  55. ivoryos/socket_handlers.py +52 -0
  56. ivoryos/static/js/action_handlers.js +213 -0
  57. ivoryos/static/js/db_delete.js +23 -0
  58. ivoryos/static/js/script_metadata.js +39 -0
  59. ivoryos/static/js/sortable_design.js +89 -56
  60. ivoryos/static/js/ui_state.js +113 -0
  61. ivoryos/templates/base.html +4 -4
  62. ivoryos/utils/bo_campaign.py +179 -3
  63. ivoryos/utils/db_models.py +14 -5
  64. ivoryos/utils/form.py +5 -9
  65. ivoryos/utils/global_config.py +13 -1
  66. ivoryos/utils/py_to_json.py +225 -0
  67. ivoryos/utils/script_runner.py +49 -7
  68. ivoryos/utils/serilize.py +203 -0
  69. ivoryos/utils/task_runner.py +4 -1
  70. ivoryos/version.py +1 -1
  71. {ivoryos-1.0.9.dist-info → ivoryos-1.2.0b1.dist-info}/METADATA +5 -8
  72. ivoryos-1.2.0b1.dist-info/RECORD +105 -0
  73. ivoryos/routes/control/templates/control/controllers.html +0 -78
  74. ivoryos/routes/control/templates/control/controllers_home.html +0 -55
  75. ivoryos/routes/control/templates/control/controllers_new.html +0 -89
  76. ivoryos/routes/database/database.py +0 -306
  77. ivoryos/routes/database/templates/database/step_card.html +0 -7
  78. ivoryos/routes/design/templates/design/experiment_builder.html +0 -521
  79. ivoryos/routes/design/templates/design/experiment_run.html +0 -558
  80. ivoryos-1.0.9.dist-info/RECORD +0 -61
  81. /ivoryos/routes/auth/templates/{auth/login.html → login.html} +0 -0
  82. /ivoryos/routes/auth/templates/{auth/signup.html → signup.html} +0 -0
  83. /ivoryos/routes/{database → data}/__init__.py +0 -0
  84. /ivoryos/routes/main/templates/{main/help.html → help.html} +0 -0
  85. {ivoryos-1.0.9.dist-info → ivoryos-1.2.0b1.dist-info}/LICENSE +0 -0
  86. {ivoryos-1.0.9.dist-info → ivoryos-1.2.0b1.dist-info}/WHEEL +0 -0
  87. {ivoryos-1.0.9.dist-info → ivoryos-1.2.0b1.dist-info}/top_level.txt +0 -0
@@ -3,7 +3,7 @@
3
3
  {% block title %}IvoryOS | Design Database{% endblock %}
4
4
  {% block body %}
5
5
  <div class="div">
6
- <form id="search" style="display: inline-block;float: right;" action="{{url_for('database.list_workflows',deck_name=deck_name)}}" method="GET">
6
+ <form id="search" style="display: inline-block;float: right;" action="{{url_for('data.list_workflows',deck_name=deck_name)}}" method="GET">
7
7
  <div class="input-group">
8
8
  <div class="form-outline">
9
9
  <input type="search" name="keyword" id="keyword" class="form-control" placeholder="Search workflows...">
@@ -28,19 +28,25 @@
28
28
  <tbody>
29
29
  {% for workflow in workflows %}
30
30
  <tr>
31
- <td><a href="{{ url_for('database.get_workflow_steps', workflow_id=workflow.id) }}">{{ workflow.name }}</a></td>
31
+ <td><a href="{{ url_for('data.workflow_logs', workflow_id=workflow.id) }}">{{ workflow.name }}</a></td>
32
32
  <td>{{ workflow.id }}</td>
33
33
  <td>{{ workflow.start_time.strftime("%Y-%m-%d %H:%M:%S") if workflow.start_time else '' }}</td>
34
34
  <td>{{ workflow.end_time.strftime("%Y-%m-%d %H:%M:%S") if workflow.end_time else '' }}</td>
35
35
 
36
36
  <td>
37
37
  {% if workflow.data_path %}
38
- <a href="{{ url_for('design.download_results', filename=workflow.data_path) }}">{{ workflow.data_path }}</a>
38
+ <a href="{{ url_for('data.download_results', filename=workflow.data_path) }}">{{ workflow.data_path }}</a>
39
39
  {% endif %}
40
40
  </td>
41
41
  <td>
42
42
  {% if session['user'] == 'admin' or session['user'] == workflow.author %}
43
- <a href="{{ url_for('database.delete_workflow_data', workflow_id=workflow.id) }}">delete</a>
43
+ {# <a href="{{ url_for('data.delete_workflow_data', workflow_id=workflow.id) }}">delete</a>#}
44
+ <a href="#"
45
+ class="text-danger"
46
+ data-delete-url="{{ url_for('data.delete_workflow_record', workflow_id=workflow.id) }}"
47
+ onclick="deleteWorkflow(this); return false;">
48
+ Delete
49
+ </a>
44
50
  {% else %}
45
51
  <a class="disabled-link">delete</a>
46
52
  {% endif %}
@@ -53,13 +59,13 @@
53
59
  {# paging#}
54
60
  <div class="pagination justify-content-center">
55
61
  <div class="page-item {{ 'disabled' if not workflows.has_prev else '' }}">
56
- <a class="page-link" href="{{ url_for('database.list_workflows', page=workflows.prev_num) }}">Previous</a>
62
+ <a class="page-link" href="{{ url_for('data.list_workflows', page=workflows.prev_num) }}">Previous</a>
57
63
  </div>
58
64
 
59
65
  {% for num in workflows.iter_pages() %}
60
66
  {% if num %}
61
67
  <div class="page-item {{ 'active' if num == workflows.page else '' }}">
62
- <a class="page-link" href="{{ url_for('database.list_workflows', page=num) }}">{{ num }}</a>
68
+ <a class="page-link" href="{{ url_for('data.list_workflows', page=num) }}">{{ num }}</a>
63
69
  </div>
64
70
  {% else %}
65
71
  <div class="page-item disabled">
@@ -69,7 +75,7 @@
69
75
  {% endfor %}
70
76
 
71
77
  <div class="page-item {{ 'disabled' if not workflows.has_next else '' }}">
72
- <a class="page-link" href="{{ url_for('database.list_workflows', page=workflows.next_num) }}">Next</a>
78
+ <a class="page-link" href="{{ url_for('data.list_workflows', page=workflows.next_num) }}">Next</a>
73
79
  </div>
74
80
  </div>
75
81
 
@@ -99,5 +105,5 @@
99
105
  });
100
106
  }
101
107
  </script>
102
-
108
+ <script src="{{ url_for('static', filename='js/db_delete.js') }}"></script>
103
109
  {% endblock %}
@@ -110,21 +110,21 @@
110
110
  {% if grouped.prep %}
111
111
  <h4 class="mt-4">Prep Phase</h4>
112
112
  {% for step in grouped.prep %}
113
- {% include "step_card.html" %}
113
+ {% include "components/step_card.html" %}
114
114
  {% endfor %}
115
115
  {% endif %}
116
116
 
117
117
  {% for repeat_index, step_list in grouped.script.items()|sort %}
118
118
  <h4 class="mt-4" id="card-iter{{ repeat_index }}">Iteration {{ repeat_index }}</h4>
119
119
  {% for step in step_list %}
120
- {% include "step_card.html" %}
120
+ {% include "components/step_card.html" %}
121
121
  {% endfor %}
122
122
  {% endfor %}
123
123
 
124
124
  {% if grouped.cleanup %}
125
125
  <h4 class="mt-4">Cleanup Phase</h4>
126
126
  {% for step in grouped.cleanup %}
127
- {% include "step_card.html" %}
127
+ {% include "components/step_card.html" %}
128
128
  {% endfor %}
129
129
  {% endif %}
130
130
  {% endblock %}
@@ -0,0 +1,4 @@
1
+ from .design import design
2
+ # from ivoryos.routes.execute.socket_handlers import socketio
3
+
4
+ __all__ = ['design', ]