From d951bf5bd2458ab656243c015b18b574e81a1f6d Mon Sep 17 00:00:00 2001 From: Tobias Mueller Date: Mon, 18 Mar 2024 17:27:59 -0700 Subject: [PATCH 1/7] added version tag to distinguish test and prod deploy updates --- frontend/rctool/templates/rctool/home.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/frontend/rctool/templates/rctool/home.html b/frontend/rctool/templates/rctool/home.html index c7590859..b6aa3bb7 100644 --- a/frontend/rctool/templates/rctool/home.html +++ b/frontend/rctool/templates/rctool/home.html @@ -7,6 +7,10 @@
+ {% comment %} TODO: remove version tag {% endcomment %} +
+
DEBUG: To-be-version v0.9.1
+
From dfb5fbb927c79503edada1ccd28023fe162acf84 Mon Sep 17 00:00:00 2001 From: Tobias Mueller Date: Mon, 18 Mar 2024 17:55:04 -0700 Subject: [PATCH 2/7] fixed pdf display --- .../templates/rctool/rctool/export/rctool_export_pdf.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/rctool/templates/rctool/rctool/export/rctool_export_pdf.html b/frontend/rctool/templates/rctool/rctool/export/rctool_export_pdf.html index 28088b69..b8a02b84 100644 --- a/frontend/rctool/templates/rctool/rctool/export/rctool_export_pdf.html +++ b/frontend/rctool/templates/rctool/rctool/export/rctool_export_pdf.html @@ -146,7 +146,7 @@
Model Parameters
{{ rc.parameters.0.label }} - Q = {{ rc.parameters.0.const }} ( H {{ offsets_val.0 }} ){{ rc.parameters.0.exp }} + Q = {{ rc.parameters.0.const }} ( H {{ offsets_val.0 }} ){{ rc.parameters.0.exp }} {{ rc.parameters.0.seg_bounds.0.0|floatformat:3 }} , {{ rc.parameters.0.seg_bounds.1.0|floatformat:3}} {{ rc.parameters.0.rmse|floatformat:3 }} @@ -154,7 +154,7 @@
Model Parameters
{% if rc.parameters.1 %} {{ rc.parameters.1.label }} - Q = {{ rc.parameters.1.const }}( H {{ offsets_val.1 }}){{ rc.parameters.1.exp }} + Q = {{ rc.parameters.1.const }}( H {{ offsets_val.1 }}){{ rc.parameters.1.exp }} {{ rc.parameters.1.seg_bounds.0.0|floatformat:3 }} , {{ rc.parameters.1.seg_bounds.1.0|floatformat:3 }} {{ rc.parameters.1.rmse|floatformat:3 }} From 73e167fd3aa661b3e0fc099c67280704f388d652 Mon Sep 17 00:00:00 2001 From: Tobias Mueller Date: Mon, 18 Mar 2024 20:20:53 -0700 Subject: [PATCH 3/7] removed debug tag, removed outdated todo comments --- frontend/rctool/templates/rctool/home.html | 5 ----- .../rctool/rctool/develop/rctool_develop_js.html | 3 +-- frontend/rctool/views.py | 12 ------------ 3 files changed, 1 insertion(+), 19 deletions(-) diff --git a/frontend/rctool/templates/rctool/home.html b/frontend/rctool/templates/rctool/home.html index b6aa3bb7..6c0ad854 100644 --- a/frontend/rctool/templates/rctool/home.html +++ b/frontend/rctool/templates/rctool/home.html @@ -7,11 +7,6 @@
- {% comment %} TODO: remove version tag {% endcomment %} -
-
DEBUG: To-be-version v0.9.1
-
-
diff --git a/frontend/rctool/templates/rctool/rctool/develop/rctool_develop_js.html b/frontend/rctool/templates/rctool/rctool/develop/rctool_develop_js.html index 0fdc0a02..b247e6af 100644 --- a/frontend/rctool/templates/rctool/rctool/develop/rctool_develop_js.html +++ b/frontend/rctool/templates/rctool/rctool/develop/rctool_develop_js.html @@ -211,7 +211,7 @@ rcData[idx+1].data = newSegData; rcParam[idx].const = C; rcParam[idx].exp = slope; - rcParam[idx].offset = offset; // TODO REMOVE IF THIS HAS ALREADY BEEN UPDATED + rcParam[idx].offset = offset; rcParam[idx].rmse = rmse; rcParam[idx].seg_bounds = [[segmentData[0][0], segmentData[0][1]], [segmentData[1][0], segmentData[1][1]]]; rcDict = {'data':rcData, 'parameters':rcParam}; @@ -305,7 +305,6 @@ if (this_chart.type == 'scatter'){ var startPoint = this_data.data[0] var endPoint = this_data.data.slice(-1)[0] - // TODO: find why we have to sort this if (startPoint[0] < endPoint[0]){ this_chart.data[0].x = startPoint[1] this_chart.data[0].y = startPoint[0] diff --git a/frontend/rctool/views.py b/frontend/rctool/views.py index 66f1f73d..38a625d5 100644 --- a/frontend/rctool/views.py +++ b/frontend/rctool/views.py @@ -53,18 +53,6 @@ def rctool_import(request, tour_request_id=0): # If user is on the tour, upload test data if tour_request_id == 1: context["form"] = import_rc_data() - # TODO: check if this test file load was necessary - # try: - # df = pd.read_csv( - # "test_files/capilano_field_data.csv" - # ) # Using this for now while we work on the develop page - # df["toggle_point"] = "checked" - # df["datetime"] = df["datetime"].astype("str") - # context["headings"] = list(df.columns.values) - # context["table_data"] = df.values.tolist() - # context["raw_field_data"] = df.to_json(date_format="iso") - # except Exception as e: - # messages.error(request, "An unexpected error occcured.") return render(request, "rctool/rctool/import/rctool_import.html", context) # if not on a tour, upload their dataset From 440d232b853a80c930daf0249d286de1b9f43115 Mon Sep 17 00:00:00 2001 From: Tobias Mueller Date: Tue, 26 Mar 2024 14:55:28 -0700 Subject: [PATCH 4/7] fixed header size --- frontend/rctool/templates/rctool/components/navbar.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/rctool/templates/rctool/components/navbar.html b/frontend/rctool/templates/rctool/components/navbar.html index 1e9c776e..f68820d6 100644 --- a/frontend/rctool/templates/rctool/components/navbar.html +++ b/frontend/rctool/templates/rctool/components/navbar.html @@ -4,11 +4,11 @@
-

HydRA -

+