From cec9e4763b224c02f8d21d5317bc09d0e8f6a180 Mon Sep 17 00:00:00 2001 From: "Vincent A. Cicirello" Date: Tue, 5 Mar 2024 15:27:23 -0500 Subject: [PATCH] reordered metrics --- README.md | 2 +- images/bibliometrics.svg | 2 +- images/bibliometrics2.svg | 2 +- src/bibliometrics/bibliometrics.py | 2 +- tests/tests.py | 4 ++-- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 9c75bad..e1be055 100644 --- a/README.md +++ b/README.md @@ -141,7 +141,7 @@ field. The bibliometrics utility does not attempt to scrape this from your Schol To change the order that the bibliometrics appear in the SVG, or to explicitly exclude one or more bibliometrics, you can use the `"include"` field. This field is an array of keys associated with the various bibliometrics. If this field is not present, then the following default order is -used: `[ "total-cites", "five-year-cites", "most-cited", "h-index", "m-quotient", "g-index", "i10-index", "i100-index", "i1000-index", "i10000-index", "w-index", "o-index", "h-median", "e-index", "r-index", "a-index" ]`. There is no +used: `[ "total-cites", "five-year-cites", "most-cited", "h-index", "g-index", "i10-index", "i100-index", "i1000-index", "i10000-index", "w-index", "o-index", "h-median", "m-quotient", "e-index", "r-index", "a-index" ]`. There is no reason to use this field if the only thing you want to do is to exclude bibliometrics that have the value 0. Such bibliometrics will be excluded by default. The list of keys for the bibliometrics to include is case-insensitive. diff --git a/images/bibliometrics.svg b/images/bibliometrics.svg index 1cb646f..1081522 100644 --- a/images/bibliometrics.svg +++ b/images/bibliometrics.svg @@ -1 +1 @@ -BibliometricsTotal citations2052Five-year citations364Most-cited paper228h-index25m-quotient1.00g-index44i10-index33i100-index3w-index8o-index75h-median48e-index34.12r-index42.30a-index71.56Last updated: 05 March 2024 \ No newline at end of file +BibliometricsTotal citations2052Five-year citations364Most-cited paper228h-index25g-index44i10-index33i100-index3w-index8o-index75h-median48m-quotient1.00e-index34.12r-index42.30a-index71.56Last updated: 05 March 2024 \ No newline at end of file diff --git a/images/bibliometrics2.svg b/images/bibliometrics2.svg index 2a896d6..92dfee7 100644 --- a/images/bibliometrics2.svg +++ b/images/bibliometrics2.svg @@ -1 +1 @@ -BibliometricsTotal citations2052Five-year citations364Most-cited paper228h-index25m-quotient1.00g-index44i10-index33i100-index3w-index8o-index75h-median48e-index34.12r-index42.30a-index71.56Last updated: 05 March 2024 \ No newline at end of file +BibliometricsTotal citations2052Five-year citations364Most-cited paper228h-index25g-index44i10-index33i100-index3w-index8o-index75h-median48m-quotient1.00e-index34.12r-index42.30a-index71.56Last updated: 05 March 2024 \ No newline at end of file diff --git a/src/bibliometrics/bibliometrics.py b/src/bibliometrics/bibliometrics.py index 8e05b20..46ae42f 100755 --- a/src/bibliometrics/bibliometrics.py +++ b/src/bibliometrics/bibliometrics.py @@ -462,7 +462,6 @@ def main() : "five-year-cites", "most-cited", "h-index", - "m-quotient", "g-index", "i10-index", "i100-index", @@ -471,6 +470,7 @@ def main() : "w-index", "o-index", "h-median", + "m-quotient", "e-index", "r-index", "a-index" diff --git a/tests/tests.py b/tests/tests.py index e4f6bf1..7c9f577 100644 --- a/tests/tests.py +++ b/tests/tests.py @@ -35,7 +35,7 @@ class TestBibiometrics(unittest.TestCase) : # To have tests generate sample images (to files), # change this to True. - printSampleImage = True #False + printSampleImage = False def test_calculator_retains_scraped(self): metrics = { @@ -318,7 +318,6 @@ def test_generate_image(self) : "five-year-cites", "most-cited", "h-index", - "m-quotient", "g-index", "i10-index", "i100-index", @@ -327,6 +326,7 @@ def test_generate_image(self) : "w-index", "o-index", "h-median", + "m-quotient", "e-index", "r-index", "a-index"