Open steveforczyk opened 1 year ago
Thank you for sumbitting your issue, we will look at it shortly.
Hi Stephen,
Thanks for opening an issue. To clarify: are you trying to execute the above statement? It looks like that's the expected output from the code cell above it, namely:
url = planeturl + planet_name + "/properties/"
r = requests.get(url = url, headers = header)
planet_prop = r.json()
print("Catalog 1: " + planet_prop[0]['catalog_name']) print("Catalog 2: " + planet_prop[1]['catalog_name']) planet_prop[0].keys()
Specifically, that last line of code returns all of the keys in the "planet_prop" dictionary, rather than assigning them.
Cheers, Thomas
Thomas: Thanks for your quick response. Let me look at the code and I will get back to you with any issues. Most of the workbooks are executing just fine but there are always some problems. One of the things I like about Python is that it is free and widely available. The thing I hate it is not developed as a unitary system so I run into incompatibilities from time to time.
From: "Thomas Dutkiewicz" @.> To: "spacetelescope/mast_notebooks" @.> Cc: "Stephen M Forczyk" @.>, "Author" @.> Sent: Thursday, September 14, 2023 3:03:33 PM Subject: Re: [spacetelescope/mast_notebooks] Issue on page /notebooks/TESS/beginner_tess_exomast/beginner_tess_exomast.html (Issue #44)
Hi Stephen,
Thanks for opening an issue. To clarify: are you trying to execute the above statement? It looks like that's the expected output from the code cell above it, namely:
url = planeturl + planet_name + "/properties/"
r = requests.get(url = url, headers = header)
planet_prop = r.json()
print("Catalog 1: " + planet_prop[0]['catalog_name']) print("Catalog 2: " + planet_prop[1]['catalog_name']) planet_prop[0].keys()
Specifically, that last line of code returns all of the keys in the "planet_prop" dictionary, rather than assigning them.
Cheers, Thomas
— Reply to this email directly, [ https://github.com/spacetelescope/mast_notebooks/issues/44#issuecomment-1720066388 | view it on GitHub ] , or [ https://github.com/notifications/unsubscribe-auth/AIANZIJYR2ZV33ZVBP5IQA3X2NPJLANCNFSM6AAAAAA4YHNXJM | unsubscribe ] . You are receiving this because you authored the thread. Message ID: < @.*** >
I am trying to get the "ExoPlanet and Tess Light Curves" python notebook to work and I have run into a statements that I can not get to work. dict_keys(['canonical_name', 'exoplanetID', 'catalog_name', 'planet_name', 'disposition', 'modified_date', 'star_name', 'component', 'Rs', 'Rs_unit', 'Rs_upper', 'Rs_lower', 'Rs_ref', 'Rs_url', 'Ms', 'Ms_unit', 'Ms_upper', 'Ms_lower', 'Ms_ref', 'Ms_url', 'Fe/H', 'Fe/H_upper', 'Fe/H_lower', 'Fe/H_ref', 'Fe/H_url', 'stellar_gravity', 'stellar_gravity_upper', 'stellar_gravity_lower', 'stellar_gravity_ref', 'stellar_gravity_url', 'Teff', 'Teff_unit', 'Teff_upper', 'Teff_lower', 'Teff_ref', 'Teff_url', 'Vmag', 'Vmag_unit', 'Vmag_upper', 'Vmag_lower', 'Vmag_ref', 'Vmag_url', 'Jmag', 'Jmag_unit', 'Jmag_upper', 'Jmag_lower', 'Jmag_ref', 'Jmag_url', 'Hmag', 'Hmag_unit', 'Hmag_upper', 'Hmag_lower', 'Hmag_ref', 'Hmag_url', 'Kmag', 'Kmag_unit', 'Kmag_upper', 'Kmag_lower', 'Kmag_ref', 'Kmag_url', 'RA', 'DEC', 'distance', 'distance_unit', 'distance_upper', 'distance_lower', 'distance_ref', 'distance_url', 'Rp', 'Rp_unit', 'Rp_upper', 'Rp_lower', 'Rp_ref', 'Rp_url', 'Mp', 'Mp_unit', 'Mp_upper', 'Mp_lower', 'Mp_ref', 'Mp_url', 'Tp', 'Tp_unit', 'Tp_upper', 'Tp_lower', 'Tp_ref', 'Tp_url', 'surface_gravity', 'surface_gravity_unit', 'surface_gravity_upper', 'surface_gravity_lower', 'surface_gravity_ref', 'surface_gravity_url', 'orbital_period', 'orbital_period_unit', 'orbital_period_upper', 'orbital_period_lower', 'orbital_period_ref', 'orbital_period_url', 'orbital_distance', 'orbital_distance_unit', 'orbital_distance_upper', 'orbital_distance_lower', 'orbital_distance_ref', 'orbital_distance_url', 'inclination', 'inclination_unit', 'inclination_upper', 'inclination_lower', 'inclination_ref', 'inclination_url', 'eccentricity', 'eccentricity_unit', 'eccentricity_upper', 'eccentricity_lower', 'eccentricity_ref', 'eccentricity_url', 'omega', 'omega_unit', 'omega_upper', 'omega_lower', 'omega_ref', 'omega_url', 'transit_duration', 'transit_duration_unit', 'transit_duration_upper', 'transit_duration_lower', 'transit_duration_ref', 'transit_duration_url', 'transit_time', 'transit_time_unit', 'transit_time_upper', 'transit_time_lower', 'transit_time_ref', 'transit_time_url', 'a/Rs', 'a/Rs_unit', 'a/Rs_upper', 'a/Rs_lower', 'a/Rs_ref', 'a/Rs_url', 'Rp/Rs', 'Rp/Rs_unit', 'Rp/Rs_upper', 'Rp/Rs_lower', 'Rp/Rs_ref', 'Rp/Rs_url', 'impact_parameter', 'impact_parameter_unit', 'impact_parameter_upper', 'impact_parameter_lower', 'impact_parameter_ref', 'impact_parameter_url', 'transit_depth', 'transit_depth_unit', 'transit_depth_upper', 'transit_depth_lower', 'transit_depth_ref', 'transit_depth_url', 'constellation', 'Tmag', 'Tmag_unit', 'Tmag_upper', 'Tmag_lower', 'Tmag_ref', 'Tmag_url', 'SNR', 'SNR_unit', 'SNR_upper', 'SNR_lower', 'SNR_ref', 'SNR_url', 'snr_emission_15', 'snr_emission_5', 'snr_transmission_K', 'pmRA', 'pmRA_upper', 'pmRA_lower', 'pmDec', 'pmDec_upper', 'pmDec_lower', 'pm_unit', 'pm_ref', 'pm_url', 'dayside_temperature', 'transit_flag']) above is the statement that will not work where the dictionary keys are defined. Perhaps the statement is just too long.I can get most workbooks to run but there is a problem with this statement