From 3b19e9a7a76f833333e4b69bc6d3809a2e6c78b5 Mon Sep 17 00:00:00 2001 From: Rob Zellem Date: Tue, 15 Jun 2021 08:19:06 -0700 Subject: [PATCH 1/2] added catch for N/A obscodes --- exotic/output_files.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/exotic/output_files.py b/exotic/output_files.py index ba41c92e..7b11e42b 100644 --- a/exotic/output_files.py +++ b/exotic/output_files.py @@ -64,6 +64,13 @@ def aavso(self, comp_star, airmasses, ld0, ld1, ld2, ld3): params_file = self.dir / f"AAVSO_{self.p_dict['pName']}_{self.i_dict['date']}.txt" + # AAVSO cannot accept N/A as an obscode + if (self.i_dict['aavso_num']).lower() == "n/a": + self.i_dict['aavso_num'] = "" + if (self.i_dict['second_obs']).lower() == "n/a": + self.i_dict['second_obs'] = "" + + with params_file.open('w') as f: f.write("#TYPE=EXOPLANET\n" # fixed f"#OBSCODE={self.i_dict['aavso_num']}\n" # UI From 54401581ad70d584789159f271df993fb5f709fc Mon Sep 17 00:00:00 2001 From: Rob Zellem Date: Tue, 15 Jun 2021 08:19:27 -0700 Subject: [PATCH 2/2] added catch for N/A obscodes --- exotic/version.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exotic/version.py b/exotic/version.py index cffb82c5..8583baf6 100644 --- a/exotic/version.py +++ b/exotic/version.py @@ -1 +1 @@ -__version__ = "0.46.1" +__version__ = "0.46.2"