Skip to content

Commit

Permalink
Merge pull request #173 from tsgit/jatsupdate
Browse files Browse the repository at this point in the history
bump version
  • Loading branch information
tsgit committed Jun 18, 2019
2 parents a35df69 + 3ff0617 commit 00edf68
Show file tree
Hide file tree
Showing 7 changed files with 227 additions and 37,039 deletions.
Binary file modified dtds/si540.zip
Binary file not shown.
33,901 changes: 1 addition & 33,900 deletions harvestingkit/tests/data/sample_elsevier_550_document_output.xml

Large diffs are not rendered by default.

Large diffs are not rendered by default.

3,138 changes: 2 additions & 3,136 deletions harvestingkit/tests/data/sample_elsevier_560_document_output.xml

Large diffs are not rendered by default.

145 changes: 145 additions & 0 deletions harvestingkit/tests/data/sample_elsevier_560_document_output_1.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,145 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE article PUBLIC "-//ES//DTD journal article DTD version 5.6.0//EN//XML" "art560.dtd" [
<!ENTITY gr001 SYSTEM "gr001" NDATA IMAGE>
<!ENTITY gr002 SYSTEM "gr002" NDATA IMAGE>
<!ENTITY gr003 SYSTEM "gr003" NDATA IMAGE>
<!ENTITY gr004 SYSTEM "gr004" NDATA IMAGE>
<!ENTITY gr005 SYSTEM "gr005" NDATA IMAGE>
<!ENTITY gr006 SYSTEM "gr006" NDATA IMAGE>
]>
<article xmlns="http://www.elsevier.com/xml/ja/dtd" xmlns:ce="http://www.elsevier.com/xml/common/dtd" xmlns:sa="http://www.elsevier.com/xml/common/struct-aff/dtd" xmlns:sb="http://www.elsevier.com/xml/common/struct-bib/dtd" xmlns:xlink="http://www.w3.org/1999/xlink" docsubtype="sco" xml:lang="en">
<item-info>
<jid>PLB</jid>
<aid>34667</aid>
<ce:pii>S0370-2693(19)30364-8</ce:pii>
<ce:doi>10.1016/j.physletb.2019.05.043</ce:doi>
<ce:copyright year="2019" type="unknown"/>
<ce:doctopics>
<ce:doctopic id="doc0010">
<ce:text>Astrophysics and Cosmology</ce:text>
</ce:doctopic>
</ce:doctopics>
<ce:preprint>
<ce:inter-ref xlink:role="http://www.elsevier.com/xml/linking-roles/preprint" xlink:href="arxiv:1905.00064" id="inf0010"/>
</ce:preprint>
</item-info>
<head>
<ce:title id="ti0010">Shadow of a black hole surrounded by dark matter</ce:title>
<ce:author-group id="ag0010">
<ce:author id="au0010" author-id="S0370269319303648-18c22b7728e6353ba4b186c27adb2fcb">
<ce:given-name>R.A.</ce:given-name>
<ce:surname>Konoplya</ce:surname>
<ce:cross-ref refid="aff0010" id="crf0020">
<ce:sup>a</ce:sup>
</ce:cross-ref>
<ce:cross-ref refid="aff0020" id="crf0030">
<ce:sup>b</ce:sup>
</ce:cross-ref>
<ce:cross-ref refid="cr0010" id="crf0380">
<ce:sup>⁎</ce:sup>
</ce:cross-ref>
<ce:e-address type="email" xlink:href="mailto:roman.konoplya@gmail.com" id="ea0010">roman.konoplya@gmail.com</ce:e-address>
</ce:author>
<ce:affiliation id="aff0010" affiliation-id="S0370269319303648-1aca4689d26feeef68112142a1cf6990">
<ce:label>a</ce:label>
<ce:textfn>Institute of Physics and Research Centre of Theoretical Physics and Astrophysics, Faculty of Philosophy and Science, Silesian University in Opava, CZ-746 01 Opava, Czech Republic</ce:textfn>
<sa:affiliation>
<sa:organization>Institute of Physics</sa:organization>
<sa:organization>Research Centre of Theoretical Physics and Astrophysics</sa:organization>
<sa:organization>Faculty of Philosophy and Science</sa:organization>
<sa:organization>Silesian University in Opava</sa:organization>
<sa:city>Opava</sa:city>
<sa:postal-code>CZ-746 01</sa:postal-code>
<sa:country>Czech Republic</sa:country>
</sa:affiliation>
<ce:source-text id="srct0005">Institute of Physics and Research Centre of Theoretical Physics and Astrophysics, Faculty of Philosophy and Science, Silesian University in Opava, CZ-746 01 Opava, Czech Republic</ce:source-text>
</ce:affiliation>
<ce:affiliation id="aff0020" affiliation-id="S0370269319303648-6d4748f236caaef7972a6691a66f1106">
<ce:label>b</ce:label>
<ce:textfn>Peoples Friendship University of Russia (RUDN University), 6 Miklukho-Maklaya Street, Moscow 117198, Russian Federation</ce:textfn>
<sa:affiliation>
<sa:organization>Peoples Friendship University of Russia (RUDN University)</sa:organization>
<sa:address-line>6 Miklukho-Maklaya Street</sa:address-line>
<sa:city>Moscow</sa:city>
<sa:postal-code>117198</sa:postal-code>
<sa:country>Russian Federation</sa:country>
</sa:affiliation>
<ce:source-text id="srct0010">Peoples Friendship University of Russia (RUDN University), 6 Miklukho-Maklaya Street, Moscow 117198, Russian Federation</ce:source-text>
</ce:affiliation>
<ce:correspondence id="cr0010">
<ce:label>⁎</ce:label>
<ce:text>Correspondence to: Institute of Physics and Research Centre of Theoretical Physics and Astrophysics, Faculty of Philosophy and Science, Silesian University in Opava, CZ-746 01 Opava, Czech Republic.</ce:text>
<sa:affiliation>
<sa:organization>Institute of Physics</sa:organization>
<sa:organization>Research Centre of Theoretical Physics and Astrophysics</sa:organization>
<sa:organization>Faculty of Philosophy and Science</sa:organization>
<sa:organization>Silesian University in Opava</sa:organization>
<sa:city>Opava</sa:city>
<sa:postal-code>CZ-746 01</sa:postal-code>
<sa:country>Czech Republic</sa:country>
</sa:affiliation>
</ce:correspondence>
</ce:author-group>
<ce:date-received day="5" month="5" year="2019"/>
<ce:date-revised day="26" month="5" year="2019"/>
<ce:date-accepted day="28" month="5" year="2019"/>
<ce:miscellaneous id="ms0010">Editor: M. Cvetič</ce:miscellaneous>
<ce:abstract id="ab0010">
<ce:section-title id="st0010">Abstract</ce:section-title>
<ce:abstract-sec id="as0010">
<ce:simple-para id="sp0070">We consider a simple spherical model consisting of a Schwarzschild black hole of mass <ce:italic>M</ce:italic> and a dark matter of mass Δ<ce:italic>M</ce:italic> around it. The general formula for the radius of black-hole shadow has been derived in this case. It is shown that the change of the shadow is not negligible, once the effective radius of the dark matter halo is of order <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" altimg="si1.svg"><mml:mo>∼</mml:mo><mml:msqrt><mml:mrow><mml:mn>3</mml:mn><mml:mi>M</mml:mi><mml:mi mathvariant="normal">Δ</mml:mi><mml:mi>M</mml:mi></mml:mrow></mml:msqrt></mml:math>. For this to happen, for example, for the galactic black hole, the dark matter must be concentrated near the black hole. For small deviations from the Schwarzschild limit, the dominant contribution into the size of a shadow is due to the dark matter under the photon sphere, but at larger deviations, the matter outside the photon sphere cannot be ignored.</ce:simple-para>
</ce:abstract-sec>
</ce:abstract>
</head>
<body>
<ce:sections>
<ce:section id="se0010" role="introduction">
<ce:label>1</ce:label>
<ce:section-title id="st0020">Introduction</ce:section-title>
<ce:para id="pr0010">Recent observations of black holes in the electromagnetic spectrum succeeded in observing the first image of the black hole in the center of galaxy M87.</ce:para>
</ce:section>
</ce:sections>
<ce:acknowledgment id="ac0010">
<ce:section-title id="st0070">Acknowledgements</ce:section-title>
<ce:para id="pr0220">The author acknowledges the support of the grant <ce:grant-number refid="gsp0010">19-03950S</ce:grant-number> of <ce:grant-sponsor id="gsp0010" sponsor-id="https://doi.org/10.13039/501100001824">Czech Science Foundation</ce:grant-sponsor> (<mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" altimg="si73.svg"><mml:mi>G</mml:mi><mml:mi>A</mml:mi><mml:mover accent="true"><mml:mrow><mml:mi>C</mml:mi></mml:mrow><mml:mrow><mml:mo>ˇ</mml:mo></mml:mrow></mml:mover><mml:mi>R</mml:mi></mml:math>) and Alexander Zhidenko for useful discussions. This publication has been prepared with the support of the “RUDN University Program 5-100”.</ce:para>
</ce:acknowledgment>
</body>
<tail>
<ce:bibliography id="bl0010">
<ce:section-title id="st0080">References</ce:section-title>
<ce:bibliography-sec id="bs0010">
<ce:bib-reference id="br0010">
<ce:label>[1]</ce:label>
<sb:reference id="bib416B6979616D613A32303139637161s1">
<sb:contribution>
<sb:authors>
<sb:author>
<ce:given-name>K.</ce:given-name>
<ce:surname>Akiyama</ce:surname>
</sb:author>
<sb:et-al/>
<sb:collaboration>Event Horizon Telescope Collaboration</sb:collaboration>
</sb:authors>
</sb:contribution>
<sb:host>
<sb:issue>
<sb:series>
<sb:title>
<sb:maintitle>Astrophys. J.</sb:maintitle>
</sb:title>
<sb:volume-nr>875</sb:volume-nr>
</sb:series>
<sb:issue-nr>1</sb:issue-nr>
<sb:date>2019</sb:date>
</sb:issue>
<sb:pages>
<sb:first-page>L1</sb:first-page>
</sb:pages>
</sb:host>
</sb:reference>
<ce:source-text id="srct0015">K. Akiyama et al. [Event Horizon Telescope Collaboration], Astrophys. J. 875 (2019) no.1, L1.</ce:source-text>
</ce:bib-reference>
</ce:bibliography-sec>
</ce:bibliography>
</tail>
</article>
79 changes: 77 additions & 2 deletions harvestingkit/tests/elsevier_scoap3_package_tests.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
#
# This file is part of Harvesting Kit.
# Copyright (C) 2014, 2015 CERN.
# Copyright (C) 2014, 2015, 2019 CERN.
#
# Harvesting Kit is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
Expand Down Expand Up @@ -43,6 +43,19 @@ def setUp(self):
'harvestingkit.tests',
os.path.join('data', 'sample_elsevier_540_document_output.xml')
))
self.document550 = parse(pkg_resources.resource_filename(
'harvestingkit.tests',
os.path.join('data', 'sample_elsevier_550_document_output.xml')
))
self.document560 = parse(pkg_resources.resource_filename(
'harvestingkit.tests',
os.path.join('data', 'sample_elsevier_560_document_output.xml')
))
self.document560_1 = parse(pkg_resources.resource_filename(
'harvestingkit.tests',
os.path.join('data', 'sample_elsevier_560_document_output_1.xml')
))


## tests for documents
def test_doi(self):
Expand All @@ -53,6 +66,14 @@ def test_540_doi(self):
"""Test that doi is good."""
self.assertEqual(self.els._get_doi(self.document540), '10.1016/j.cell.2015.03.041')

def test_550_doi(self):
"""Test that doi is good."""
self.assertEqual(self.els._get_doi(self.document550), '10.1016/j.nuclphysb.2018.12.001')

def test_560_doi(self):
"""Test that doi is good."""
self.assertEqual(self.els._get_doi(self.document560), '10.1016/j.physletb.2019.06.020')

def test_title(self):
"""Test that title is good."""
self.assertEqual(self.els.get_title(self.document), 'F-theory vacua with <math altimg="si1.gif" xmlns="http://www.w3.org/1998/Math/MathML"><msub><mrow><mi mathvariant="double-struck">Z</mi></mrow><mrow><mn>3</mn></mrow></msub></math> gauge symmetry')
Expand All @@ -61,6 +82,14 @@ def test_540_title(self):
"""Test that title is good."""
self.assertEqual(self.els.get_title(self.document540), 'Bending Gradients: How the Intestinal Stem Cell Gets Its Home')

def test_550_title(self):
"""Test that title is good."""
self.assertEqual(self.els.get_title(self.document550), 'Revisiting RGEs for general gauge theories')

def test_560_title(self):
"""Test that title is good."""
self.assertEqual(self.els.get_title(self.document560), 'A two Higgs doublet model for dark matter and neutrino masses')

def test_doctype(self):
"""Test that doctype is good."""
self.assertEqual(self.els.get_doctype(self.document), '')
Expand All @@ -69,6 +98,14 @@ def test_540_doctype(self):
"""Test that doctype is good."""
self.assertEqual(self.els.get_doctype(self.document540), '')

def test_550_doctype(self):
"""Test that doctype is good."""
self.assertEqual(self.els.get_doctype(self.document550), '')

def test_560_doctype(self):
"""Test that doctype is good."""
self.assertEqual(self.els.get_doctype(self.document560), '')

def test_abstract(self):
"""Test that abstract is good."""
abstract = 'Discrete gauge groups naturally arise in F-theory compactifications on genus-one fibered '\
Expand Down Expand Up @@ -179,6 +216,14 @@ def test_540_copyright(self):
"""Test that copyright is good."""
self.assertEqual(self.els.get_copyright(self.document540), 'Elsevier Inc.')

def test_550_copyright(self):
"""Test that copyright is good."""
self.assertEqual(self.els.get_copyright(self.document550), 'The Authors')

def test_560_copyright(self):
"""Test that copyright is good."""
self.assertEqual(self.els.get_copyright(self.document560), '')

#Need to find a better example package for DTD5.2 version - this on doesnt have issue.xml and we have unmatching issue and main files
@unittest.skip("Issue and main xml are not matching")
def test_publication_information(self):
Expand All @@ -197,7 +242,7 @@ def test_publication_information(self):
self.assertEqual(self.els.get_publication_information(self.document), publication_information)

def test_540_publication_information(self):
"""Test that pubinfo is good."""
"""Test that pubinfo 540 is good."""
self.els._found_issues = [pkg_resources.resource_filename('harvestingkit.tests', os.path.join('data', 'sample_elsevier_540_issue'))]
self.els._build_doi_mapping()
publication_information = ('CELL',
Expand All @@ -211,6 +256,36 @@ def test_540_publication_information(self):
'10.1016/j.cell.2015.03.041')
self.assertEqual(self.els.get_publication_information(self.document540), publication_information)

def test_550_publication_information(self):
"""Test that pubinfo 550 is good."""
self.els._found_issues = [pkg_resources.resource_filename('harvestingkit.tests', os.path.join('data', 'sample_elsevier_550_issue'))]
self.els._build_doi_mapping()
publication_information = ('Nuclear Physics B',
'0550-3213',
'939',
'',
'1',
'48',
'2019',
'2019-02',
'10.1016/j.nuclphysb.2018.12.001')
self.assertEqual(self.els.get_publication_information(self.document550), publication_information)

def test_560_publication_information(self):
"""Test that pubinfo 560 is good."""
self.els._found_issues = [pkg_resources.resource_filename('harvestingkit.tests', os.path.join('data', 'sample_elsevier_560_issue'))]
self.els._build_doi_mapping()
publication_information = ('Physics letters B',
'0370-2693',
'795',
'',
'1',
'6',
'2019',
'2019-08-10',
'10.1016/j.physletb.2019.05.043')
self.assertEqual(self.els.get_publication_information(self.document560_1), publication_information)

@unittest.skip("Not done yet")
def test_references(self):
"""Test that references is good."""
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

setup(
name="HarvestingKit",
version="0.6.14",
version="0.6.15",
packages=find_packages(),
package_data={
'': ['data/*.xml'],
Expand Down

0 comments on commit 00edf68

Please sign in to comment.