working preliminary POC

This commit is contained in:
2025-03-22 00:32:16 +01:00
parent 0d55853f03
commit 96c23c62d1
5 changed files with 183 additions and 44 deletions

View File

@ -2,12 +2,12 @@ from django.db import models
# Create your models here.
class Isotope(models.Model):
n_protons = models.IntegerField()
n_nucleons = models.IntegerField()
stable = models.BooleanField()
symbol = models.CharField(max_length=2)
name = models.CharField(max_length=255)
spin_quantum_number = models.FloatField()
gamma = models.FloatField() # MHz/T
natural_abundance = models.FloatField()
quadrupole_moment = models.FloatField(null=True)
n_protons = models.IntegerField(help_text="Protons in isotope")
n_nucleons = models.IntegerField(help_text="Nucleons in isotope")
stable = models.BooleanField(help_text="Is isotope stable?")
symbol = models.CharField(max_length=2, help_text="Symbol of isotope")
name = models.CharField(max_length=255, help_text="Name of isotope")
spin_quantum_number = models.FloatField(help_text="Spin quantum number")
gamma = models.FloatField(help_text="Gyromagnetic ratio in MHz/T") # MHz/T
natural_abundance = models.FloatField(help_text="Natural abundance")
quadrupole_moment = models.FloatField(null=True, help_text="Quadrupole moment")