imciner2.github.io
Science Score: 44.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (7.4%) to scientific vocabulary
Repository
Basic Info
- Host: GitHub
- Owner: imciner2
- License: mit
- Language: JavaScript
- Default Branch: master
- Size: 42.3 MB
Statistics
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
- Releases: 0
Metadata Files
README.md
Introduction
This template utilizes Jekyll, an open source static website generator, as well as a theme based largely off of the Minimal Mistakes theme by Michael Rose. The purpose of this template is to provide you with a simple, well designed website that is optimized for hosting on Github pages. We aim to reduce the technological know-how and time that is usually required for maintaining a personal or professional website.
Why Should I Use This?
By using this template you will have a website that is well designed, easy to maintain, free to host and easy to update. While there are many options out there for personal and professional websites, most are dependant on the platform on which they were built, and cannot be easily migrated. This template, while built for Github Pages integration, provides flexibility should you choose to host it elsewhere.
Getting Started Guide
Complete documentation for getting started as well as advanced features of Jekyll Academic can be found at https://ncsu-libraries.github.io/jekyll-academic-docs/.
Owner
- Name: Ian McInerney
- Login: imciner2
- Kind: user
- Location: London. UK
- Company: Imperial College London
- Website: ism.engineer
- Repositories: 85
- Profile: https://github.com/imciner2
Research Software Engineer in the Department of Mechanical Engineering at Imperial College London
Citation (citations/generateScholarCitations.py)
import json
import bibtexparser
import scholarly
import sys
from scholarly import scholarly as sc
from bibtexparser.bparser import BibTexParser
def get_author_citations(scholar_id):
aut = sc.search_author_id(scholar_id)
sc.fill(aut, sections=['publications'])
# Extract the ID and the number of citations for the paper
citations = {}
for pub in aut['publications']:
citations[pub['author_pub_id']] = pub['num_citations']
return citations
def get_publication_citations(citations, biblibrary, folder):
pubcites = {}
shield_dict = {}
for pub in biblibrary.entries:
bib_id = pub['ID']
if 'scholar_id' in pub:
scholar_id = pub['scholar_id']
num_cites = citations[scholar_id]
print("{key} with ID {gsid} has {num} citations".format(key=bib_id, gsid=scholar_id, num=num_cites))
pubcites[bib_id] = num_cites
shield_dict[bib_id] = num_cites
else:
print("Skipping {key}".format(key=bib_id))
json_object = json.dumps(shield_dict, indent=4)
with open("{folder}/citation_count.json".format(folder=folder), "w") as outfile:
outfile.write(json_object)
return pubcites
######################################
# Main body of the script
######################################
if len(sys.argv) == 3:
filename = sys.argv[1]
outpath = sys.argv[2]
else:
filename = "./content/bibliographies/Papers.bib"
outpath = "./content"
with open(filename) as bibtex_file:
parser = BibTexParser()
parser.ignore_nonstandard_types = False
biblibrary = bibtexparser.load(bibtex_file, parser)
print("Loaded file {fname}".format(fname=filename))
autcites = get_author_citations('FhYROr4AAAAJ')
pubcites = get_publication_citations(autcites, biblibrary, outpath)
GitHub Events
Total
- Push event: 54
Last Year
- Push event: 54
Issues and Pull Requests
Last synced: 11 months ago
All Time
- Total issues: 0
- Total pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Total issue authors: 0
- Total pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0