From cecdd5f7ef7adea4cad2c4bd1bf722d244893f9e Mon Sep 17 00:00:00 2001 From: Markus Rosenstihl Date: Wed, 23 Apr 2025 21:48:25 +0200 Subject: [PATCH] added column width rad/T --- isotables/isotopapp/templates/posiiton.html | 30 ++++++++++----------- isotables/isotopapp/templates/result.html | 19 ++++++------- isotables/isotopapp/views.py | 1 + 3 files changed, 26 insertions(+), 24 deletions(-) diff --git a/isotables/isotopapp/templates/posiiton.html b/isotables/isotopapp/templates/posiiton.html index e215018..520061e 100644 --- a/isotables/isotopapp/templates/posiiton.html +++ b/isotables/isotopapp/templates/posiiton.html @@ -24,30 +24,30 @@ {% for attr in ans %} - - {% for i in attr %} - {{ i }} - {% endfor %} - + + {% for i in attr %} + {{ i }} + {% endfor %} + {% endfor %}
- {{ div_plot | safe }} + {{ div_plot | safe }} +
+
+ {{ div_table | safe }} +
-
- {{ div_table | safe }} +
+ {{ script_plot| safe }} + {{ script_table| safe }}
-
-
- {{ script_plot| safe }} - {{ script_table| safe }} -
-Go Home + Go Home - {% endblock %} +{% endblock %} diff --git a/isotables/isotopapp/templates/result.html b/isotables/isotopapp/templates/result.html index e611993..5b442a4 100644 --- a/isotables/isotopapp/templates/result.html +++ b/isotables/isotopapp/templates/result.html @@ -18,17 +18,18 @@ Spin Nat. ab. in % γ in MHz/T + γ in rad/T Sens. in %(1H) {% for attr in ans %} - - {% for i in attr %} - {{ i }} - {% endfor %} - + + {% for i in attr %} + {{ i }} + {% endfor %} + {% endfor %} @@ -36,12 +37,12 @@ {{ div| safe }} -
- {{ script| safe }} -
+
+ {{ script| safe }} +
-Go Back + Go Back {% endblock %} diff --git a/isotables/isotopapp/views.py b/isotables/isotopapp/views.py index 3231908..74f36e1 100644 --- a/isotables/isotopapp/views.py +++ b/isotables/isotopapp/views.py @@ -46,6 +46,7 @@ def isotope_info(isotope, field): spin, f"{isotope.natural_abundance:.3f}", f"{isotope.gamma:.5f}", + f"{2*pi*isotope.gamma*1e6:.5e}", f"{relative_sensitivity(isotope):.4f}"] def relative_sensitivity(iso):