diff --git a/mica/archive/cda/services.py b/mica/archive/cda/services.py index 55cec32d..295820c4 100644 --- a/mica/archive/cda/services.py +++ b/mica/archive/cda/services.py @@ -267,6 +267,7 @@ def get_proposal_abstract(obsid=None, propnum=None, timeout=60): html = _get_cda_service_text("prop_abstract", timeout=timeout, **params) text = html_to_text(html) + text += "\nTEXT_END:" # Return value is a text string with these section header lines. Use them # to split the text into sections. @@ -275,7 +276,7 @@ def get_proposal_abstract(obsid=None, propnum=None, timeout=60): "Proposal Number", "Principal Investigator", "Abstract", - "", + "TEXT_END", ] out = {} for delim0, delim1 in zip(delims[:-1], delims[1:]): diff --git a/mica/archive/tests/test_cda.py b/mica/archive/tests/test_cda.py index 7e49b583..352bb49a 100644 --- a/mica/archive/tests/test_cda.py +++ b/mica/archive/tests/test_cda.py @@ -405,7 +405,8 @@ def test_get_proposal_abstract(): "ALMA. Chandra resolution & sensitivity enables the study of " "large scale phenomena: (1) influence of the surrounding " "environment; (2) interaction between galaxies; (3) influence of " - "groups and clusters" + "groups and clusters: (4) BH growth and census; (5) star formation " + "and stellar populations; (6) feedback from starbursts and AGNs." ), "principal_investigator": "Martin Elvis", "proposal_number": "08900073",