From 9afba751bf99916e5263080c51a3b3177fda9a93 Mon Sep 17 00:00:00 2001 From: Bas Nijholt <basnijholt@gmail.com> Date: Wed, 2 Oct 2019 15:16:09 +0200 Subject: [PATCH] update refs --- create_bib_file.py | 22 ++++++++++------------ not_on_crossref.bib | 26 +++++++++++++------------- paper.bib | 40 ++++++++++++++-------------------------- paper.yaml | 1 - 4 files changed, 37 insertions(+), 52 deletions(-) diff --git a/create_bib_file.py b/create_bib_file.py index 7010c20..607cc3d 100644 --- a/create_bib_file.py +++ b/create_bib_file.py @@ -108,13 +108,11 @@ def doi2bib(doi): return r.text -bibs = [f for f in glob.glob("*yaml") if "tmp.yaml" not in f] -print("Reading: ", bibs) +fname = 'paper.yaml' +print("Reading: ", fname) -mapping = {} -for fname in bibs: - with open(fname) as f: - mapping = {**mapping, **yaml.safe_load(f)} +with open(fname) as f: + mapping = yaml.safe_load(f) dois = dict(sorted(mapping.items())) @@ -125,14 +123,14 @@ with ThreadPoolExecutor() as ex: entries = [replace_key(key, bib) for key, bib in zip(dois.keys(), bibs)] -bib_files = glob.glob("not_on_crossref.bib") + with open("paper.bib", "w") as outfile: + fname = "not_on_crossref.bib" outfile.write("@preamble{ {\\providecommand{\\BIBYu}{Yu} } }\n\n") - for fname in bib_files: - outfile.write(f"\n% Below is from `{fname}`.\n\n") - with open(fname) as infile: - outfile.write(infile.read()) - outfile.write("\n% Below is from all `yaml` files.\n\n") + outfile.write(f"\n% Below is from `{fname}`.\n\n") + with open(fname) as infile: + outfile.write(infile.read()) + outfile.write("\n% Below is from `paper.yaml` files.\n\n") for e in entries: for line in e.split('\n'): # Remove the url line diff --git a/not_on_crossref.bib b/not_on_crossref.bib index 4d6ca7f..ccd48a7 100644 --- a/not_on_crossref.bib +++ b/not_on_crossref.bib @@ -5,6 +5,19 @@ school = {Rice University}, } +@Article{Dyn1990, + doi = {10.1093/imanum/10.1.137}, + url = {https://doi.org/10.1093%2Fimanum%2F10.1.137}, + year = 1990, + publisher = {Oxford University Press ({OUP})}, + volume = {10}, + number = {1}, + pages = {137--154}, + author = {Nira Dyn and David Levin and Samuel Rippa}, + title = {Data Dependent Triangulations for Piecewise Linear Interpolation}, + journal = {{IMA} Journal of Numerical Analysis} +} + @InCollection{Figueiredo1995, author = {de Figueiredo, Luiz Henrique}, title = {Adaptive sampling of parametric curves}, @@ -70,16 +83,3 @@ title = {Mathematica, Version 12.0}, note = {Champaign, IL, 2019}, } - -@Article{Dyn1990, - doi = {10.1093/imanum/10.1.137}, - url = {https://doi.org/10.1093%2Fimanum%2F10.1.137}, - year = 1990, - publisher = {Oxford University Press ({OUP})}, - volume = {10}, - number = {1}, - pages = {137--154}, - author = {Nira Dyn and David Levin and Samuel Rippa}, - title = {Data Dependent Triangulations for Piecewise Linear Interpolation}, - journal = {{IMA} Journal of Numerical Analysis} -} diff --git a/paper.bib b/paper.bib index fdd3a41..5b7bc5f 100755 --- a/paper.bib +++ b/paper.bib @@ -10,6 +10,19 @@ school = {Rice University}, } +@Article{Dyn1990, + doi = {10.1093/imanum/10.1.137}, + url = {https://doi.org/10.1093%2Fimanum%2F10.1.137}, + year = 1990, + publisher = {Oxford University Press ({OUP})}, + volume = {10}, + number = {1}, + pages = {137--154}, + author = {Nira Dyn and David Levin and Samuel Rippa}, + title = {Data Dependent Triangulations for Piecewise Linear Interpolation}, + journal = {{IMA} Journal of Numerical Analysis} +} + @InCollection{Figueiredo1995, author = {de Figueiredo, Luiz Henrique}, title = {Adaptive sampling of parametric curves}, @@ -76,20 +89,7 @@ note = {Champaign, IL, 2019}, } -@Article{Dyn1990, - doi = {10.1093/imanum/10.1.137}, - url = {https://doi.org/10.1093%2Fimanum%2F10.1.137}, - year = 1990, - publisher = {Oxford University Press ({OUP})}, - volume = {10}, - number = {1}, - pages = {137--154}, - author = {Nira Dyn and David Levin and Samuel Rippa}, - title = {Data Dependent Triangulations for Piecewise Linear Interpolation}, - journal = {{IMA} Journal of Numerical Analysis} -} - -% Below is from all `yaml` files. +% Below is from `paper.yaml` files. @article{Alliez2003, doi = {10.1145/882262.882296}, @@ -177,18 +177,6 @@ booktitle = {Proceedings of the 25th annual conference on Computer graphics and interactive techniques - {SIGGRAPH} {\textquotesingle}98} } -@article{Dyn1990, - doi = {10.1093/imanum/10.1.137}, - year = 1990, - publisher = {Oxford University Press ({OUP})}, - volume = {10}, - number = {1}, - pages = {137--154}, - author = {NIRA DYN and DAVID LEVIN and SAMUEL RIPPA}, - title = {Data Dependent Triangulations for Piecewise Linear Interpolation}, - journal = {{IMA} Journal of Numerical Analysis} -} - @article{Emery1998, doi = {10.1088/0957-0233/9/6/003}, year = 1998, diff --git a/paper.yaml b/paper.yaml index 3ebf657..3d20cab 100644 --- a/paper.yaml +++ b/paper.yaml @@ -5,7 +5,6 @@ Bommer2019: 10.1103/physrevlett.122.187702 Chen2017: 10.1088/1361-6501/aa7d31 Clenshaw1960: 10.1007/bf01386223 DeRose1998: 10.1145/280814.280826 -Dyn1990: 10.1093/imanum/10.1.137 Emery1998: 10.1088/0957-0233/9/6/003 Gonnet2010: 10.1145/1824801.1824804 Gramacy2004: 10.1145/1015330.1015367 -- GitLab