Skip to content

Commit

Permalink
Add DB fields for polarization standards (#162)
Browse files Browse the repository at this point in the history
  • Loading branch information
juanep97 committed Dec 22, 2024
1 parent ae9fc63 commit 0378af9
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion iop4lib/db/astrosource.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,12 @@ class AstroSource(models.Model):

calibrates = models.ManyToManyField('AstroSource', related_name="calibrators", blank=True, help_text="sources that it calibrates (for calibrators only)")

p = models.FloatField(blank=True, null=True, help_text="Polarization degree [0-1] (for calibrators only)")
p_err = models.FloatField(blank=True, null=True, help_text="Polarization degree error (for calibrators only)")

chi = models.FloatField(blank=True, null=True, help_text="Polarization angle [deg] (for calibrators only)")
chi_err = models.FloatField(blank=True, null=True, help_text="Polarization angle error (for calibrators only)")

mag_R = models.FloatField(blank=True, null=True, help_text="Literature magnitude in R band (for calibrators only)")
mag_R_err = models.FloatField(blank=True, null=True, help_text="Literature magnitude error in R band (for calibrators only)")

Expand Down Expand Up @@ -316,4 +322,4 @@ def nreps_dipol(self):
elif texp <= 80:
return 2
else:
return 1
return 1

0 comments on commit 0378af9

Please sign in to comment.