added column width rad/T

This commit is contained in:
Markus Rosenstihl 2025-04-23 21:48:25 +02:00
parent 5a4bcf070a
commit cecdd5f7ef
3 changed files with 26 additions and 24 deletions

View File

@ -24,30 +24,30 @@
<tbody> <tbody>
{% for attr in ans %} {% for attr in ans %}
<tr> <tr>
{% for i in attr %} {% for i in attr %}
<td>{{ i }}</td> <td>{{ i }}</td>
{% endfor %} {% endfor %}
</tr> </tr>
{% endfor %} {% endfor %}
</tbody> </tbody>
</table> </table>
<div class="row justify-content-left"> <div class="row justify-content-left">
<div class="col"> <div class="col">
{{ div_plot | safe }} {{ div_plot | safe }}
</div>
<div class="col">
{{ div_table | safe }}
</div>
</div> </div>
<div class="col"> <div>
{{ div_table | safe }} {{ script_plot| safe }}
{{ script_table| safe }}
</div> </div>
</div>
<div>
{{ script_plot| safe }}
{{ script_table| safe }}
</div>
<a href="{% url 'home' %}">Go Home</a> <a href="{% url 'home' %}">Go Home</a>
</div> </div>
{% endblock %} {% endblock %}

View File

@ -18,17 +18,18 @@
<th scope="col">Spin</th> <th scope="col">Spin</th>
<th scope="col">Nat. ab. in %</th> <th scope="col">Nat. ab. in %</th>
<th scope="col">&gamma; in MHz/T</th> <th scope="col">&gamma; in MHz/T</th>
<th scope="col">&gamma; in rad/T</th>
<th scope="col">Sens. in %(<sup>1</sup>H)</th> <th scope="col">Sens. in %(<sup>1</sup>H)</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
{% for attr in ans %} {% for attr in ans %}
<tr> <tr>
{% for i in attr %} {% for i in attr %}
<td>{{ i }}</td> <td>{{ i }}</td>
{% endfor %} {% endfor %}
</tr> </tr>
{% endfor %} {% endfor %}
</tbody> </tbody>
@ -36,12 +37,12 @@
{{ div| safe }} {{ div| safe }}
<div> <div>
{{ script| safe }} {{ script| safe }}
</div> </div>
<a href="{% url 'home' %}">Go Back</a> <a href="{% url 'home' %}">Go Back</a>
</div> </div>
{% endblock %} {% endblock %}

View File

@ -46,6 +46,7 @@ def isotope_info(isotope, field):
spin, spin,
f"{isotope.natural_abundance:.3f}", f"{isotope.natural_abundance:.3f}",
f"{isotope.gamma:.5f}", f"{isotope.gamma:.5f}",
f"{2*pi*isotope.gamma*1e6:.5e}",
f"{relative_sensitivity(isotope):.4f}"] f"{relative_sensitivity(isotope):.4f}"]
def relative_sensitivity(iso): def relative_sensitivity(iso):