Skip to content

Commit

Permalink
Restore old trackermaps view
Browse files Browse the repository at this point in the history
  • Loading branch information
nothingface0 committed May 30, 2022
1 parent 2446283 commit 357c8e4
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 10 deletions.
9 changes: 9 additions & 0 deletions cablingmap/templates/cablingmap/cablingmap.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,15 @@ <h4 class="text-center font-weight-bold mt-1 mb-1">Strip Detector</h4>
</div>
</div>
</div>
<div class="card col-sm col-md bg-dark text-light" onclick="location.href='{% url 'remotescripts:list' %}'">
<div class="card-header">
<h4 class="text-center font-weight-bold mt-1 mb-1">Remote tools</h4>
</div>
<img class="card-img-top" src="{% static 'home/img/trackermaps.png' %}" alt="Card image cap">
<div class="card-body">
<p class="card-text text-center" style="font-size: 18px">Tools running on remote machines</p>
</div>
</div>
</div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion dqmhelper/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
messages.ERROR: "danger",
}
# Version to display in order to keep track of changes
CERTHELPER_VERSION = "1.5.0"
CERTHELPER_VERSION = "1.5.1"

# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
Expand Down
7 changes: 4 additions & 3 deletions home/templates/home/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -103,15 +103,16 @@ <h4 class="text-center font-weight-bold mt-1 mb-1">Cabling Map & DCS Trend</h4>
</p>
</div>
</div>
<div class="card col-sm col-md bg-dark text-light" onclick="location.href='{% url 'remotescripts:list' %}'">
<div class="card col-sm col-md bg-dark text-light" onclick="location.href='{% url 'remotescripts:trackermaps' %}'">
<div class="card-header">
<h4 class="text-center font-weight-bold mt-1 mb-1">Remote tools</h4>
<h4 class="text-center font-weight-bold mt-1 mb-1">Tracker Maps</h4>
</div>
<img class="card-img-top" src="{% static 'home/img/trackermaps.png' %}" alt="Card image cap">
<div class="card-body">
<p class="card-text text-center" style="font-size: 18px">Tools running on remote machines</p>
<p class="card-text text-center" style="font-size: 18px">Generate tracker maps</p>
</div>
</div>

{% endif %}
</div>
{% else %}
Expand Down
3 changes: 3 additions & 0 deletions remotescripts/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,7 @@
urlpatterns = [
path("remote/list/", views.RemoteScriptListView.as_view(), name="list"),
path("remote/<int:pk>/", views.RemoteScriptView.as_view(), name="detail"),
path(
"trackermaps_standalone/", views.TrackerMapsView.as_view(), name="trackermaps"
),
]
12 changes: 6 additions & 6 deletions remotescripts/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,12 +196,12 @@ def run_tracker_maps(self, run_type: str, run_number_list: list) -> bool:
Function that connects to vocms066 using the env-supplied username/password
and executes the script to generate specific tracker maps.
"""
# tracker_maps_command = (
# "cd /data/users/event_display/ShiftRun3/TkMapGeneration/CMS* &&"
# " bash /data/users/event_display/ShiftRun3/TkMapGeneration/tkmapsFromCertHelper.sh"
# f" {str(run_type)} {''.join(str(run_number)+' ' for run_number in run_number_list)}"
# )
tracker_maps_command = TEST_BASH_SCRIPT
tracker_maps_command = (
"cd /data/users/event_display/ShiftRun3/TkMapGeneration/CMS* &&"
" bash /data/users/event_display/ShiftRun3/TkMapGeneration/tkmapsFromCertHelper.sh"
f" {str(run_type)} {''.join(str(run_number)+' ' for run_number in run_number_list)}"
)
# tracker_maps_command = TEST_BASH_SCRIPT

channel_layer = get_channel_layer()

Expand Down

0 comments on commit 357c8e4

Please sign in to comment.