Skip to content

Commit

Permalink
v1.8.4: added omega to GUI
Browse files Browse the repository at this point in the history
  • Loading branch information
rzellem committed Dec 1, 2021
1 parent 04582b5 commit 3bf77e6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions exotic/exotic_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -1051,6 +1051,14 @@ def save_input():
ecc_entry.grid(row=i, column=j + 1, sticky=tk.W, pady=2)
i += 1

# "Argument of Periastron (deg)": 50,
omega_label = tk.Label(root, text="Argument of Periastron (degrees)", justify=tk.LEFT)
omega_entry = tk.Entry(root, font="Helvetica 12", justify=tk.LEFT)
omega_entry.insert(tk.END, "0.")
omega_label.grid(row=i, column=j, sticky=tk.W, pady=2)
omega_entry.grid(row=i, column=j + 1, sticky=tk.W, pady=2)
i += 1

# "Star Effective Temperature (K)": 6001.0,
Teff_label = tk.Label(root, text="Star Effective Temperature (K)", justify=tk.LEFT)
Teff_entry = tk.Entry(root, font="Helvetica 12", justify=tk.LEFT)
Expand Down Expand Up @@ -1141,6 +1149,7 @@ def save_input():
input_data['inc'] = inc_entry.get()
input_data['incUnc'] = incerr_entry.get()
input_data['ecc'] = ecc_entry.get()
input_data['omega'] = omega_entry.get()
input_data['teff'] = Teff_entry.get()
input_data['teffUncPos'] = Tefferrpos_entry.get()
input_data['teffUncNeg'] = Tefferrneg_entry.get()
Expand Down Expand Up @@ -1451,6 +1460,7 @@ def save_input():
"Orbital Inclination (deg)": float(input_data['inc']),
"Orbital Inclination (deg) Uncertainty": float(input_data['incUnc']),
"Orbital Eccentricity (0 if null)": float(input_data['ecc']),
"Argument of Periastron (deg)": float(input_data['omega']),
"Star Effective Temperature (K)": float(input_data['teff']),
"Star Effective Temperature (+) Uncertainty": float(input_data['teffUncPos']),
"Star Effective Temperature (-) Uncertainty": float(input_data['teffUncNeg']),
Expand Down
2 changes: 1 addition & 1 deletion exotic/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "1.8.3"
__version__ = "1.8.4"

0 comments on commit 3bf77e6

Please sign in to comment.