Skip to content

Commit

Permalink
Merge pull request #233 from seasidesparrow/master
Browse files Browse the repository at this point in the history
Patch to fix ArXivDirect outputting malformed 'identifier' field
  • Loading branch information
spacemansteve authored Aug 19, 2019
2 parents 20e48e5 + d457ffe commit 9c02d89
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion aip/direct/ArXivDirect.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,8 @@ def add_direct(record, json_timestamp=None, current_record=None,
ads_ex.xml_node(adsr.current_properties, 'pubtype', 'eprint')
ads_ex.xml_node(adsr.current_properties, 'private', 0)
ads_ex.xml_node(adsr.current_properties, 'ocrabstract', 0)
preprint_id = electronic_id.replace('arXiv:', '')
# preprint_id = electronic_id.replace('arXiv:', '')
preprint_id = electronic_id
ads_ex.xml_node(adsr.current_properties, 'preprint', preprint_id)
ads_ex.xml_node(adsr.current_properties, 'nonarticle', 0)
ads_ex.xml_node(adsr.current_properties, 'refereed', 0)
Expand Down
4 changes: 2 additions & 2 deletions tests/stubdata/directdata.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
DIRECT_RAW_INPUT = {'bibcode': u'2017arXiv171105739L', 'publication': u'eprint arXiv:1711.05739', 'pubdate': u'2017-11-15', 'title': u'Planet-Planet Occultations in TRAPPIST-1 and Other Exoplanet Systems', 'abstract': u"We explore the occurrence and detectability of planet-planet occultations\n(PPOs) in exoplanet systems. These are events during which a planet occults the\ndisk of another planet in the same system, imparting a small photometric signal\nas its thermal or reflected light is blocked. We focus on the planets in\nTRAPPIST-1, whose orbital planes we show are aligned to within 0.3 degrees at\n90% confidence. We present a photodynamical model for predicting and computing\nPPOs in TRAPPIST-1 and other systems for various assumptions of the planets'\natmospheric states. When marginalizing over the uncertainties on all orbital\nparameters, we find that the rate of PPOs in TRAPPIST-1 is about 1.4 per day.\nWe investigate the prospects for detection of these events with the James Webb\nSpace Telescope, finding that ~10-20 occultations per year of b and c should be\nabove the noise level at 12-15 microns. Joint modeling of several of these PPOs\ncould lead to a robust detection. Alternatively, observations with the proposed\nOrigins Space Telescope should be able to detect individual PPOs at high\nsignal-to-noise. We show how PPOs can be used to break transit timing variation\ndegeneracies, imposing strong constraints on the eccentricities and masses of\nthe planets, as well as to constrain the longitudes of nodes and thus the\ncomplete three-dimensional structure of the system. We further show how\nmodeling of these events can be used to reveal a planet's day/night temperature\ncontrast and construct crude surface maps. We make our photodynamical code\navailable on github.", 'comments': [u'36 pages, 25 figures. Accepted to ApJ. Multi-purpose photodynamical\n code available at github.com/rodluger/planetplanet', u'doi:10.3847/1538-4357/aa9c43'], 'authors': u'Luger, Rodrigo; Lustig-Yaeger, Jacob; Agol, Eric', 'keywords': u'Astrophysics - Earth and Planetary Astrophysics', 'properties': {'DOI': u'doi:10.3847/1538-4357/aa9c43', 'HTML': u'http://arxiv.org/abs/1711.05739'}}


DIRECT_MERGE_INPUT = {'abstract': u"We explore the occurrence and detectability of planet-planet occultations (PPOs) in exoplanet systems. These are events during which a planet occults the disk of another planet in the same system, imparting a small photometric signal as its thermal or reflected light is blocked. We focus on the planets in TRAPPIST-1, whose orbital planes we show are aligned to within 0.3 degrees at 90% confidence. We present a photodynamical model for predicting and computing PPOs in TRAPPIST-1 and other systems for various assumptions of the planets' atmospheric states. When marginalizing over the uncertainties on all orbital parameters, we find that the rate of PPOs in TRAPPIST-1 is about 1.4 per day. We investigate the prospects for detection of these events with the James Webb Space Telescope, finding that ~10-20 occultations per year of b and c should be above the noise level at 12-15 microns. Joint modeling of several of these PPOs could lead to a robust detection. Alternatively, observations with the proposed Origins Space Telescope should be able to detect individual PPOs at high signal-to-noise. We show how PPOs can be used to break transit timing variation degeneracies, imposing strong constraints on the eccentricities and masses of the planets, as well as to constrain the longitudes of nodes and thus the complete three-dimensional structure of the system. We further show how modeling of these events can be used to reveal a planet's day/night temperature contrast and construct crude surface maps. We make our photodynamical code available on github.", 'aff': [u'-', u'-', u'-'], 'arxiv_class': [u'astro-ph.EP'], 'author': [u'Luger, Rodrigo', u'Lustig-Yaeger, Jacob', u'Agol, Eric'], 'author_count': 3, 'author_facet': [u'Luger, R', u'Lustig-Yaeger, J', u'Agol, E'], 'author_facet_hier': [u'0/Luger, R', u'1/Luger, R/Luger, Rodrigo', u'0/Lustig-Yaeger, J', u'1/Lustig-Yaeger, J/Lustig-Yaeger, Jacob', u'0/Agol, E', u'1/Agol, E/Agol, Eric'], 'author_norm': [u'Luger, R', u'Lustig-Yaeger, J', u'Agol, E'], 'bibcode': u'2017arXiv171105739L', 'bibstem': [u'arXiv', u'arXiv1711'], 'bibstem_facet': u'arXiv', 'database': [u'astronomy'], 'date': u'2017-11-01T00:00:00.000000Z', 'doctype': u'eprint', 'doctype_facet_hier': [u'0/Article', u'1/Article/e-print'], 'eid': u'arXiv:1711.05739', 'email': [u'-', u'-', u'-'], 'entry_date': u'2017-11-15T00:00:00.000000Z', 'first_author': u'Luger, Rodrigo', 'first_author_facet_hier': [u'0/Luger, R', u'1/Luger, R/Luger, Rodrigo'], 'first_author_norm': u'Luger, R', 'identifier': [u'1711.05739'], 'keyword': [u'Astrophysics - Earth and Planetary Astrophysics'], 'keyword_norm': [u'-'], 'keyword_schema': [u'arXiv'], 'links_data': [u'{"access": "open", "instances": "", "title": "", "type": "preprint", "url": "http://arxiv.org/abs/1711.05739"}'], 'orcid_pub': [u'-', u'-', u'-'], 'page': [u'arXiv:1711.05739'], 'page_count': 0, 'pub': u'arXiv e-prints', 'pub_raw': u'eprint arXiv:1711.05739', 'pubdate': u'2017-11-00', 'pubnote': [u'36 pages, 25 figures. Accepted to ApJ. Multi-purpose photodynamical code available at github.com/rodluger/planetplanet; doi:10.3847/1538-4357/aa9c43'], 'title': [u'Planet-Planet Occultations in TRAPPIST-1 and Other Exoplanet Systems'], 'year': u'2017'}
DIRECT_MERGE_INPUT = {'abstract': u"We explore the occurrence and detectability of planet-planet occultations (PPOs) in exoplanet systems. These are events during which a planet occults the disk of another planet in the same system, imparting a small photometric signal as its thermal or reflected light is blocked. We focus on the planets in TRAPPIST-1, whose orbital planes we show are aligned to within 0.3 degrees at 90% confidence. We present a photodynamical model for predicting and computing PPOs in TRAPPIST-1 and other systems for various assumptions of the planets' atmospheric states. When marginalizing over the uncertainties on all orbital parameters, we find that the rate of PPOs in TRAPPIST-1 is about 1.4 per day. We investigate the prospects for detection of these events with the James Webb Space Telescope, finding that ~10-20 occultations per year of b and c should be above the noise level at 12-15 microns. Joint modeling of several of these PPOs could lead to a robust detection. Alternatively, observations with the proposed Origins Space Telescope should be able to detect individual PPOs at high signal-to-noise. We show how PPOs can be used to break transit timing variation degeneracies, imposing strong constraints on the eccentricities and masses of the planets, as well as to constrain the longitudes of nodes and thus the complete three-dimensional structure of the system. We further show how modeling of these events can be used to reveal a planet's day/night temperature contrast and construct crude surface maps. We make our photodynamical code available on github.", 'aff': [u'-', u'-', u'-'], 'arxiv_class': [u'astro-ph.EP'], 'author': [u'Luger, Rodrigo', u'Lustig-Yaeger, Jacob', u'Agol, Eric'], 'author_count': 3, 'author_facet': [u'Luger, R', u'Lustig-Yaeger, J', u'Agol, E'], 'author_facet_hier': [u'0/Luger, R', u'1/Luger, R/Luger, Rodrigo', u'0/Lustig-Yaeger, J', u'1/Lustig-Yaeger, J/Lustig-Yaeger, Jacob', u'0/Agol, E', u'1/Agol, E/Agol, Eric'], 'author_norm': [u'Luger, R', u'Lustig-Yaeger, J', u'Agol, E'], 'bibcode': u'2017arXiv171105739L', 'bibstem': [u'arXiv', u'arXiv1711'], 'bibstem_facet': u'arXiv', 'database': [u'astronomy'], 'date': u'2017-11-01T00:00:00.000000Z', 'doctype': u'eprint', 'doctype_facet_hier': [u'0/Article', u'1/Article/e-print'], 'eid': u'arXiv:1711.05739', 'email': [u'-', u'-', u'-'], 'entry_date': u'2017-11-15T00:00:00.000000Z', 'first_author': u'Luger, Rodrigo', 'first_author_facet_hier': [u'0/Luger, R', u'1/Luger, R/Luger, Rodrigo'], 'first_author_norm': u'Luger, R', 'identifier': [u'arXiv:1711.05739'], 'keyword': [u'Astrophysics - Earth and Planetary Astrophysics'], 'keyword_norm': [u'-'], 'keyword_schema': [u'arXiv'], 'links_data': [u'{"access": "open", "instances": "", "title": "", "type": "preprint", "url": "http://arxiv.org/abs/1711.05739"}'], 'orcid_pub': [u'-', u'-', u'-'], 'page': [u'arXiv:1711.05739'], 'page_count': 0, 'pub': u'arXiv e-prints', 'pub_raw': u'eprint arXiv:1711.05739', 'pubdate': u'2017-11-00', 'pubnote': [u'36 pages, 25 figures. Accepted to ApJ. Multi-purpose photodynamical code available at github.com/rodluger/planetplanet; doi:10.3847/1538-4357/aa9c43'], 'title': [u'Planet-Planet Occultations in TRAPPIST-1 and Other Exoplanet Systems'], 'year': u'2017'}

DIRECT_OUTPUT = {'abstract': u"We explore the occurrence and detectability of planet-planet occultations (PPOs) in exoplanet systems. These are events during which a planet occults the disk of another planet in the same system, imparting a small photometric signal as its thermal or reflected light is blocked. We focus on the planets in TRAPPIST-1, whose orbital planes we show are aligned to within 0.3 degrees at 90% confidence. We present a photodynamical model for predicting and computing PPOs in TRAPPIST-1 and other systems for various assumptions of the planets' atmospheric states. When marginalizing over the uncertainties on all orbital parameters, we find that the rate of PPOs in TRAPPIST-1 is about 1.4 per day. We investigate the prospects for detection of these events with the James Webb Space Telescope, finding that ~10-20 occultations per year of b and c should be above the noise level at 12-15 microns. Joint modeling of several of these PPOs could lead to a robust detection. Alternatively, observations with the proposed Origins Space Telescope should be able to detect individual PPOs at high signal-to-noise. We show how PPOs can be used to break transit timing variation degeneracies, imposing strong constraints on the eccentricities and masses of the planets, as well as to constrain the longitudes of nodes and thus the complete three-dimensional structure of the system. We further show how modeling of these events can be used to reveal a planet's day/night temperature contrast and construct crude surface maps. We make our photodynamical code available on github.", 'aff': [u'-', u'-', u'-'], 'arxiv_class': [u'astro-ph.EP'], 'author': [u'Luger, Rodrigo', u'Lustig-Yaeger, Jacob', u'Agol, Eric'], 'author_count': 3, 'author_facet': [u'Luger, R', u'Lustig-Yaeger, J', u'Agol, E'], 'author_facet_hier': [u'0/Luger, R', u'1/Luger, R/Luger, Rodrigo', u'0/Lustig-Yaeger, J', u'1/Lustig-Yaeger, J/Lustig-Yaeger, Jacob', u'0/Agol, E', u'1/Agol, E/Agol, Eric'], 'author_norm': [u'Luger, R', u'Lustig-Yaeger, J', u'Agol, E'], 'bibcode': u'2017arXiv171105739L', 'bibstem': [u'arXiv', u'arXiv1711'], 'bibstem_facet': u'arXiv', 'database': [u'astronomy'], 'date': u'2017-11-01T00:00:00.000000Z', 'doctype': u'eprint', 'doctype_facet_hier': [u'0/Article', u'1/Article/e-print'], 'eid': u'arXiv:1711.05739', 'email': [u'-', u'-', u'-'], 'entry_date': u'2017-11-15T00:00:00.000000Z', 'first_author': u'Luger, Rodrigo', 'first_author_facet_hier': [u'0/Luger, R', u'1/Luger, R/Luger, Rodrigo'], 'first_author_norm': u'Luger, R', 'identifier': [u'1711.05739'], 'keyword': [u'Astrophysics - Earth and Planetary Astrophysics'], 'keyword_norm': [u'-'], 'keyword_schema': [u'arXiv'], 'links_data': [u'{"access": "open", "instances": "", "title": "", "type": "preprint", "url": "http://arxiv.org/abs/1711.05739"}'], 'orcid_pub': [u'-', u'-', u'-'], 'page': [u'arXiv:1711.05739'], 'pub': u'arXiv e-prints', 'pub_raw': u'eprint arXiv:1711.05739', 'pubdate': u'2017-11-00', 'pubnote': [u'36 pages, 25 figures. Accepted to ApJ. Multi-purpose photodynamical code available at github.com/rodluger/planetplanet; doi:10.3847/1538-4357/aa9c43'], 'title': [u'Planet-Planet Occultations in TRAPPIST-1 and Other Exoplanet Systems'], 'year': u'2017'}
DIRECT_OUTPUT = {'abstract': u"We explore the occurrence and detectability of planet-planet occultations (PPOs) in exoplanet systems. These are events during which a planet occults the disk of another planet in the same system, imparting a small photometric signal as its thermal or reflected light is blocked. We focus on the planets in TRAPPIST-1, whose orbital planes we show are aligned to within 0.3 degrees at 90% confidence. We present a photodynamical model for predicting and computing PPOs in TRAPPIST-1 and other systems for various assumptions of the planets' atmospheric states. When marginalizing over the uncertainties on all orbital parameters, we find that the rate of PPOs in TRAPPIST-1 is about 1.4 per day. We investigate the prospects for detection of these events with the James Webb Space Telescope, finding that ~10-20 occultations per year of b and c should be above the noise level at 12-15 microns. Joint modeling of several of these PPOs could lead to a robust detection. Alternatively, observations with the proposed Origins Space Telescope should be able to detect individual PPOs at high signal-to-noise. We show how PPOs can be used to break transit timing variation degeneracies, imposing strong constraints on the eccentricities and masses of the planets, as well as to constrain the longitudes of nodes and thus the complete three-dimensional structure of the system. We further show how modeling of these events can be used to reveal a planet's day/night temperature contrast and construct crude surface maps. We make our photodynamical code available on github.", 'aff': [u'-', u'-', u'-'], 'arxiv_class': [u'astro-ph.EP'], 'author': [u'Luger, Rodrigo', u'Lustig-Yaeger, Jacob', u'Agol, Eric'], 'author_count': 3, 'author_facet': [u'Luger, R', u'Lustig-Yaeger, J', u'Agol, E'], 'author_facet_hier': [u'0/Luger, R', u'1/Luger, R/Luger, Rodrigo', u'0/Lustig-Yaeger, J', u'1/Lustig-Yaeger, J/Lustig-Yaeger, Jacob', u'0/Agol, E', u'1/Agol, E/Agol, Eric'], 'author_norm': [u'Luger, R', u'Lustig-Yaeger, J', u'Agol, E'], 'bibcode': u'2017arXiv171105739L', 'bibstem': [u'arXiv', u'arXiv1711'], 'bibstem_facet': u'arXiv', 'database': [u'astronomy'], 'date': u'2017-11-01T00:00:00.000000Z', 'doctype': u'eprint', 'doctype_facet_hier': [u'0/Article', u'1/Article/e-print'], 'eid': u'arXiv:1711.05739', 'email': [u'-', u'-', u'-'], 'entry_date': u'2017-11-15T00:00:00.000000Z', 'first_author': u'Luger, Rodrigo', 'first_author_facet_hier': [u'0/Luger, R', u'1/Luger, R/Luger, Rodrigo'], 'first_author_norm': u'Luger, R', 'identifier': [u'arXiv:1711.05739'], 'keyword': [u'Astrophysics - Earth and Planetary Astrophysics'], 'keyword_norm': [u'-'], 'keyword_schema': [u'arXiv'], 'links_data': [u'{"access": "open", "instances": "", "title": "", "type": "preprint", "url": "http://arxiv.org/abs/1711.05739"}'], 'orcid_pub': [u'-', u'-', u'-'], 'page': [u'arXiv:1711.05739'], 'pub': u'arXiv e-prints', 'pub_raw': u'eprint arXiv:1711.05739', 'pubdate': u'2017-11-00', 'pubnote': [u'36 pages, 25 figures. Accepted to ApJ. Multi-purpose photodynamical code available at github.com/rodluger/planetplanet; doi:10.3847/1538-4357/aa9c43'], 'title': [u'Planet-Planet Occultations in TRAPPIST-1 and Other Exoplanet Systems'], 'year': u'2017'}

0 comments on commit 9c02d89

Please sign in to comment.