Skip to content

Commit

Permalink
Merge pull request #741 from rzellem/develop
Browse files Browse the repository at this point in the history
AAVSO does not accept N/A for an OBSCODE
  • Loading branch information
rzellem authored Jun 15, 2021
2 parents 574f4c1 + 5440158 commit b297eef
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions exotic/output_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion exotic/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.46.1"
__version__ = "0.46.2"

0 comments on commit b297eef

Please sign in to comment.